X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FHook%2FDrupal6.php;h=c405a1c19b3aa534838c91371428916d8560fca6;hb=718e934e2c6fa496ee84f56502d73cae125b1331;hp=7cde491c40d7e9d0396aa80130db6bed0a338724;hpb=79cffafae988e139ad14440c7502710a23ac15fa;p=civicrm-core.git diff --git a/CRM/Utils/Hook/Drupal6.php b/CRM/Utils/Hook/Drupal6.php index 7cde491c40..c405a1c19b 100644 --- a/CRM/Utils/Hook/Drupal6.php +++ b/CRM/Utils/Hook/Drupal6.php @@ -1,9 +1,9 @@ buildModuleList(); - - return $this->runHooks($this->allModules, $fnSuffix, - $numParams, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6 - ); - } - - /** - * Build the list of modules to be processed for hooks. - */ - function buildModuleList() { - if ($this->isBuilt === FALSE) { - if ($this->drupalModules === NULL) { - if (function_exists('module_list')) { - // copied from user_module_invoke - $this->drupalModules = module_list(); - } - } - - if ($this->civiModules === NULL) { - $this->civiModules = array(); - $this->requireCiviModules($this->civiModules); - } - - $this->allModules = array_merge((array)$this->drupalModules, (array)$this->civiModules); - if ($this->drupalModules !== NULL && $this->civiModules !== NULL) { - // both CRM and CMS have bootstrapped, so this is the final list - $this->isBuilt = TRUE; - } - } - } +class CRM_Utils_Hook_Drupal6 extends CRM_Utils_Hook_DrupalBase { } - -