X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FHook.php;h=76887f2bc3cba8bb4ab9908f63b7c4cf6c739db6;hb=592fc2b5a68a7495ed753ca9c68eed521018c467;hp=2595679938fcdc3a6a06ca56d7168363c22feb2d;hpb=00a67b3d97b376fc12d31fd2d4bb404427444bda;p=civicrm-core.git diff --git a/CRM/Utils/Hook.php b/CRM/Utils/Hook.php index 2595679938..76887f2bc3 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 @@ -1353,7 +1368,7 @@ abstract class CRM_Utils_Hook { * * @return mixed */ - public static function export(&$exportTempTable, &$headerRows, &$sqlColumns, &$exportMode, &$componentTable, &$ids) { + public static function export(&$exportTempTable, &$headerRows, &$sqlColumns, $exportMode, $componentTable, $ids) { return self::singleton()->invoke(['exportTempTable', 'headerRows', 'sqlColumns', 'exportMode', 'componentTable', 'ids'], $exportTempTable, $headerRows, $sqlColumns, $exportMode, $componentTable, $ids, @@ -2483,9 +2498,10 @@ abstract class CRM_Utils_Hook { * @see CRM_Core_Resources::entityRefFilters * * @param array $filters + * @param array $links */ - public static function entityRefFilters(&$filters) { - self::singleton()->invoke(['filters'], $filters, self::$_nullObject, self::$_nullObject, + public static function entityRefFilters(&$filters, &$links = NULL) { + self::singleton()->invoke(['filters', 'links'], $filters, $links, self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject, 'civicrm_entityRefFilters' );