You are here

function datex_enable in Datex 7.3

Implements hook_enable().

File

./datex.module, line 44
Datex main module file, Datex adds php-intl support to drupal.

Code

function datex_enable() {
  if (function_exists('_datex_fix_missing_datex_api_module')) {
    _datex_fix_missing_datex_api_module();
  }
  if (function_exists('_datex_fix_module_weights')) {
    _datex_fix_module_weights();
  }
  if (DATEX_USE_INTL) {
    return;
  }
  require_once 'datex.install';
  $err = datex_requirements();
  $msg = check_plain(t('warning') . '!!! ' . $err['description']);
  drupal_set_message($msg, 'warning');
}