X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FHook.php;h=6b70eadf012ea1636ca10407621d9b3eac810e43;hb=a2a7ed3744688b2e96276a81f0d148209d4b1b74;hp=2595679938fcdc3a6a06ca56d7168363c22feb2d;hpb=521470d0c5b9b847453b62d3913b3bcfc17d9fe4;p=civicrm-core.git diff --git a/CRM/Utils/Hook.php b/CRM/Utils/Hook.php index 2595679938..6b70eadf01 100644 --- a/CRM/Utils/Hook.php +++ b/CRM/Utils/Hook.php @@ -835,6 +835,21 @@ abstract class CRM_Utils_Hook { ); } + /** + * This hook allows modification of the admin panels + * + * @param array $panels + * Associated array of admin panels + * + * @return mixed + */ + public static function alterAdminPanel(&$panels) { + return self::singleton()->invoke(array('panels'), $panels, + self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, + 'civicrm_alterAdminPanel' + ); + } + /** * This hook is called when sending an email / printing labels to get the values for all the * tokens returned by the 'tokens' hook