You are here

function moopapi_enable in Module Object Oriented Programming API 6

Same name and namespace in other branches
  1. 6.2 moopapi.install \moopapi_enable()
  2. 7.2 moopapi.install \moopapi_enable()
  3. 7 moopapi.install \moopapi_enable()

@file Install, update and uninstall functions for the Moopapi module.

File

./moopapi.install, line 8
Install, update and uninstall functions for the Moopapi module.

Code

function moopapi_enable() {

  // Insurance of wrong enabling order.
  $dependencies = array(
    'autoload',
  );
  foreach ($dependencies as $module) {
    drupal_install_modules((array) $module);
    module_enable((array) $module);
    module_invoke($module, 'boot');
  }

  // To turn on autoload magic we must flush all caches after enabling a
  // module that utilizes autoloading.
  drupal_flush_all_caches();
}