Skip to content
Snippets Groups Projects
Commit d6902639 authored by wmortada's avatar wmortada
Browse files

Fix typo in hook operation see PR 12913 https://github.com/civicrm/civicrm-core/pull/12913

parent c64163a8
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,10 @@ dropdown, and the Actions dropdown at the top of a contact record. ...@@ -12,6 +12,10 @@ dropdown, and the Actions dropdown at the top of a contact record.
!!! tip !!! tip
Remember to use the string processing functions of your host framework ( `ts()` for CiviCRM extensions, `t()` for Drupal modules, etc). Remember to use the string processing functions of your host framework ( `ts()` for CiviCRM extensions, `t()` for Drupal modules, etc).
!!! warning
The operation `create.new.shorcuts` is now deprecated and has been replaced with the correctly spelled `create.new.shortcuts`.
## Definition ## Definition
```php ```php
...@@ -25,10 +29,10 @@ hook_civicrm_links($op, $objectName, $objectId, &$links, &$mask, &$values) ...@@ -25,10 +29,10 @@ hook_civicrm_links($op, $objectName, $objectId, &$links, &$mask, &$values)
`pdfFormat.manage.action` `pdfFormat.manage.action`
- string `$objectName` - the entity the links relate to (or `NULL` if `$op` is - string `$objectName` - the entity the links relate to (or `NULL` if `$op` is
`create.new.shorcuts`) `create.new.shortcuts`)
- int `$objectId` - the CiviCRM internal ID of the entity (or `NULL` if `$op` - int `$objectId` - the CiviCRM internal ID of the entity (or `NULL` if `$op`
is `create.new.shorcuts`) is `create.new.shortcuts`)
- array `$links` - the links to modify in place - array `$links` - the links to modify in place
...@@ -100,7 +104,7 @@ function MODULENAME_civicrm_links($op, $objectName, $objectId, &$links, &$mask, ...@@ -100,7 +104,7 @@ function MODULENAME_civicrm_links($op, $objectName, $objectId, &$links, &$mask,
$values['thingId'] = 'mything'; $values['thingId'] = 'mything';
break; break;
case 'create.new.shorcuts': case 'create.new.shortcuts':
// add link to create new profile // add link to create new profile
$links[] = array( $links[] = array(
'url' => '/civicrm/admin/uf/group?action=add&reset=1', 'url' => '/civicrm/admin/uf/group?action=add&reset=1',
......
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