You are here

moopapi.install in Module Object Oriented Programming API 6

Same filename and directory in other branches
  1. 6.2 moopapi.install
  2. 7.2 moopapi.install
  3. 7 moopapi.install

Install, update and uninstall functions for the Moopapi module.

File

moopapi.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the Moopapi module.
 */
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();
}

Functions

Namesort descending Description
moopapi_enable @file Install, update and uninstall functions for the Moopapi module.