Merge pull request #12557 from eileenmcnaughton/activity
[civicrm-core.git] / CRM / Core / Block.php
index a9249598441b314e1059adfdc099e91774d55daa..fb9a9f199554719f8d0a1b6f1dbd4b8169659d78 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.7                                                |
+ | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2018                                |
  +--------------------------------------------------------------------+
@@ -417,13 +417,20 @@ class CRM_Core_Block {
       $values[$key] = self::setShortCutValues($short);
     }
 
-    // call links hook to add user defined links
+    // Deprecated hook with typo.  Please don't use this!
     CRM_Utils_Hook::links('create.new.shorcuts',
       NULL,
       CRM_Core_DAO::$_nullObject,
       $values
     );
 
+    // Hook that enables extensions to add user-defined links
+    CRM_Utils_Hook::links('create.new.shortcuts',
+      NULL,
+      CRM_Core_DAO::$_nullObject,
+      $values
+    );
+
     foreach ($values as $key => $val) {
       if (!empty($val['title'])) {
         $values[$key]['name'] = CRM_Utils_Array::value('name', $val, $val['title']);