Skip to content
Snippets Groups Projects
Commit a100d800 authored by Sean Madsen's avatar Sean Madsen
Browse files

Remove `<?php` from code examples

This opening tag used to be required for syntax highlighting to work
properly in code blocks. Now we no longer need it.
parent 1e6282e5
Branches
No related tags found
No related merge requests found
......@@ -106,7 +106,6 @@ File 2:
`/drupal_install_dir/sites/all/modules/civicrm/drupal/modules/example_sendEmailOnIndividual/example_sendEmailOnIndividual.module`
```php
<?php
function exampleSendEmailOnIndividual_civicrm_post($op, $objectName, $objectId, &$objectRef) {
$send_an_email = false; //Set to TRUE for DEBUG only
......@@ -149,7 +148,6 @@ a contact and you should get an email!
Here is an example that calls a function `updateMembershipCustomField()` every time a membership is created (or updated).
```php
<?php
function example_civicrm_post($op, $objectName, $objectId, &$objectRef) {
if ($objectName == 'Membership' && $op == 'create') {
CRM_Core_Transaction::addCallback(CRM_Core_Transaction::PHASE_POST_COMMIT,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment