+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018 |
+ | Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
*/
/**
/**
* Template file names for the above blocks.
+ * @var array
*/
- static $_properties = NULL;
+ public static $_properties = NULL;
/**
* Class constructor.
$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']);
self::setProperty(self::MAIL, 'templateValues', array('shortCuts' => $values));
}
- /**
- * Create the list of shortcuts for the application and format is as a block.
- */
- private static function setTemplateMenuValues() {
- $config = CRM_Core_Config::singleton();
-
- $path = 'navigation';
- $values = CRM_Core_Menu::getNavigation();
- if ($values) {
- self::setProperty(self::MENU, 'templateValues', array('menu' => $values));
- }
- }
-
/**
* Create the event blocks for upcoming events.
*/