From ab217754a0714992ba08596281842041ddb5a7f7 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 21 Aug 2018 09:39:03 -0400 Subject: [PATCH] Call hooks when deleting recent items --- CRM/Utils/Recent.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/Recent.php b/CRM/Utils/Recent.php index cdacc30bf5..0fadf5de6f 100644 --- a/CRM/Utils/Recent.php +++ b/CRM/Utils/Recent.php @@ -174,6 +174,7 @@ class CRM_Utils_Recent { } } + CRM_Utils_Hook::recent(self::$_recent); $session = CRM_Core_Session::singleton(); $session->set(self::STORE_NAME, self::$_recent); } @@ -200,15 +201,17 @@ class CRM_Utils_Recent { self::$_recent[] = $tempRecent[$i]; } + CRM_Utils_Hook::recent(self::$_recent); $session = CRM_Core_Session::singleton(); $session->set(self::STORE_NAME, self::$_recent); } /** * Check if a provider is allowed to add stuff. - * If correspondig setting is empty, all are allowed + * If corresponding setting is empty, all are allowed * * @param string $providerName + * @return bool */ public static function isProviderEnabled($providerName) { @@ -230,6 +233,8 @@ class CRM_Utils_Recent { /** * Gets the list of available providers to civi's recent items stack + * + * @return array */ public static function getProviders() { $providers = array( -- 2.25.1