X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FHook%2FDrupalBase.php;h=02ef926108f5268eb7b244673fbb0369ddff1eab;hb=f377f10d244045a52b5891bdeedc823b3988bd7c;hp=68a01f555c6808e0a7c1189ffb4273f00f3c1e2e;hpb=4fd26f71c62960fbbb738a549bb595926f1eb70b;p=civicrm-core.git diff --git a/CRM/Utils/Hook/DrupalBase.php b/CRM/Utils/Hook/DrupalBase.php index 68a01f555c..02ef926108 100644 --- a/CRM/Utils/Hook/DrupalBase.php +++ b/CRM/Utils/Hook/DrupalBase.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -57,18 +57,26 @@ class CRM_Utils_Hook_DrupalBase extends CRM_Utils_Hook { /** * @see CRM_Utils_Hook::invoke() * - * @param integer $numParams Number of parameters to pass to the hook - * @param unknown $arg1 parameter to be passed to the hook - * @param unknown $arg2 parameter to be passed to the hook - * @param unknown $arg3 parameter to be passed to the hook - * @param unknown $arg4 parameter to be passed to the hook - * @param unknown $arg5 parameter to be passed to the hook + * @param int $numParams + * Number of parameters to pass to the hook. + * @param unknown $arg1 + * Parameter to be passed to the hook. + * @param unknown $arg2 + * Parameter to be passed to the hook. + * @param unknown $arg3 + * Parameter to be passed to the hook. + * @param unknown $arg4 + * Parameter to be passed to the hook. + * @param unknown $arg5 + * Parameter to be passed to the hook. * @param mixed $arg6 - * @param string $fnSuffix function suffix, this is effectively the hook name + * @param string $fnSuffix + * Function suffix, this is effectively the hook name. * - * @return Ambigous + * @return array|bool */ - function invoke($numParams, + public function invoke( + $numParams, &$arg1, &$arg2, &$arg3, &$arg4, &$arg5, &$arg6, $fnSuffix) { @@ -82,7 +90,7 @@ class CRM_Utils_Hook_DrupalBase extends CRM_Utils_Hook { /** * Build the list of modules to be processed for hooks. */ - function buildModuleList() { + public function buildModuleList() { if ($this->isBuilt === FALSE) { if ($this->drupalModules === NULL) { if (function_exists('module_list')) { @@ -121,4 +129,5 @@ class CRM_Utils_Hook_DrupalBase extends CRM_Utils_Hook { } } } + }