Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Commit

Permalink
Merge pull request #550 from wmortada/shorcuts
Browse files Browse the repository at this point in the history
Fix typo in hook_civicrm_links
  • Loading branch information
seamuslee001 authored Oct 9, 2018
2 parents c64163a + d690263 commit b2d1050
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/hooks/hook_civicrm_links.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ dropdown, and the Actions dropdown at the top of a contact record.
!!! tip
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

```php
Expand All @@ -25,10 +29,10 @@ hook_civicrm_links($op, $objectName, $objectId, &$links, &$mask, &$values)
`pdfFormat.manage.action`

- 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`
is `create.new.shorcuts`)
is `create.new.shortcuts`)

- array `$links` - the links to modify in place

Expand Down Expand Up @@ -100,7 +104,7 @@ function MODULENAME_civicrm_links($op, $objectName, $objectId, &$links, &$mask,
$values['thingId'] = 'mything';
break;

case 'create.new.shorcuts':
case 'create.new.shortcuts':
// add link to create new profile
$links[] = array(
'url' => '/civicrm/admin/uf/group?action=add&reset=1',
Expand Down

0 comments on commit b2d1050

Please sign in to comment.