CiviCRM/CiviMail: Difference between revisions

Adds old tuturial
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
 
Line 46: Line 46:




<source lang="php">
<syntaxhighlight lang="php">
$result = civicrm_api3('CustomValue', 'get', array(
$result = civicrm_api3('CustomValue', 'get', array(
   'sequential' => 1,
   'sequential' => 1,
   'entity_id' => 2,
   'entity_id' => 2,
));
));
</source>
</syntaxhighlight>
you'll get 31 results:
you'll get 31 results:
<pre>
<pre>
Line 74: Line 74:
If you do a 'Contact' GET via the API, searching for contacts with a 'custom_40' like 'freephile'
If you do a 'Contact' GET via the API, searching for contacts with a 'custom_40' like 'freephile'


<source lang="php">
<syntaxhighlight lang="php">
$result = civicrm_api3('Contact', 'get', array(
$result = civicrm_api3('Contact', 'get', array(
   'sequential' => 1,
   'sequential' => 1,
Line 80: Line 80:
));
));


</source>
</syntaxhighlight>
You'll get "no results"
You'll get "no results"
<pre>
<pre>