Skip to content
Snippets Groups Projects
Unverified Commit fd6eca76 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Minor syntax fix

parent 78a69cc8
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ This hook is available in CiviCRM 4.7.27+ (maybe depends on the commit).
```php
function myextension_civicrm_alterEntityRefParams(&$params, $formName) {
// use your custom API to fetch tags of your choice on specific form say on 'New Individual'
if (formName == 'CRM_Contact_Form_Contact' && $params['entity'] == 'tag') {
if ($formName == 'CRM_Contact_Form_Contact' && $params['entity'] == 'tag') {
$params['entity'] = 'my_tags';
$params['api'] = array('params' => array('parent_id' => 292));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment