You are here

function bean_admin_ui_modules_enabled in Bean (for Drupal 7) 7

Implements hook_modules_enabled().

File

bean_admin_ui/bean_admin_ui.module, line 164

Code

function bean_admin_ui_modules_enabled($modules) {
  $beans_found = FALSE;
  foreach ($modules as $module) {
    if (function_exists($module . '_bean_types')) {
      $beans_found = TRUE;
    }
  }

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