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

Fix typo in hook_civicrm_links #550

Merged
merged 1 commit into from
Oct 9, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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