/** * Implementation of hook_civicrm_config */ function normalize_civicrm_config(&$config) { $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR; if (is_dir($extRoot . 'packages')) { set_include_path($extRoot . 'packages' . PATH_SEPARATOR . get_include_path()); } _normalize_civix_civicrm_config($config); }
/** * (Delegated) Implementation of hook_civicrm_disable */ function _normalize_civix_civicrm_disable() { _normalize_civix_civicrm_config(); if ($upgrader = _normalize_civix_upgrader()) { if (is_callable(array($upgrader, 'onDisable'))) { return $upgrader->onDisable(); } } }