You are here

function boxes_admin_ui_modules_enabled in Boxes 7.2

Implements hook_modules_enabled().

File

boxes_admin_ui/boxes_admin_ui.module, line 168
Boxes Admin UI

Code

function boxes_admin_ui_modules_enabled($modules) {
  $boxes_found = FALSE;
  foreach ($modules as $module) {
    if (function_exists($module . '_boxes_types')) {
      $boxes_found = TRUE;
    }
  }

  // Flush bean caches and statics if any of the enabled modules provide bean types.
  if ($boxes_found) {
    boxes_reset();
  }
}