You are here

function phone_enable in Phone 7.2

Same name and namespace in other branches
  1. 6 phone.install \phone_enable()

Implements hook_enable().

File

./phone.install, line 33
Install/Update/Uninstall functions for phone module

Code

function phone_enable() {

  // Lets check our requirements.
  $requirements = phone_requirements('runtime');
  if (isset($requirements['phone'])) {
    module_disable(array(
      'phone',
    ), TRUE);
    drupal_set_message($requirements['phone']['description'], 'error');
    drupal_set_message(t('The phone module has been disabled'), 'error');
  }
}