/** * (Delegated) Implementation of hook_civicrm_disable */ function _ndiciviparty_civix_civicrm_disable() { _ndiciviparty_civix_civicrm_config(); if ($upgrader = _ndiciviparty_civix_upgrader()) { if (is_callable(array($upgrader, 'onDisable'))) { return $upgrader->onDisable(); } } }
/** * Implementation of hook_civicrm_config * * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_config */ function ndiciviparty_civicrm_config(&$config) { include_once 'CRM/Core/BAO/Setting.php'; $address_options = CRM_Core_BAO_Setting::getItem('CiviCRM Preferences', 'address_options', NULL, NULL, NULL, 1); /*$address_options = CRM_Core_BAO_Setting::setItem( '145789', 'CiviCRM Preferences', 'address_options', NULL, NULL, NULL, 1 ); */ _ndiciviparty_civix_civicrm_config($config); }