Example #1
0
/**
 * Implementation of hook_civicrm_config
 */
function mte_civicrm_config(&$config)
{
    _mte_civix_civicrm_config($config);
    if ($config->userFramework == 'Joomla' && 'civicrm/ajax/mte/callback' == CRM_Utils_Array::value('task', $_REQUEST)) {
        $_SESSION['mte_temp'] = 1;
    }
}
/**
 * (Delegated) Implementation of hook_civicrm_disable
 */
function _mte_civix_civicrm_disable()
{
    _mte_civix_civicrm_config();
    if ($upgrader = _mte_civix_upgrader()) {
        if (is_callable(array($upgrader, 'onDisable'))) {
            return $upgrader->onDisable();
        }
    }
}