You are here

function custom_breadcrumbs_features_modules_enabled in Custom Breadcrumbs Features 7.2

Implements hook_modules_enabled().

Generate missing machine names (crumbs created by submodules's hook_install).

File

./custom_breadcrumbs_features.install, line 59
Install file for custom_breadcrumbs_features.

Code

function custom_breadcrumbs_features_modules_enabled($modules) {
  $cb_types = _custom_breadcrumbs_features_get_types();
  foreach ($cb_types as $table => $cb_type) {

    // Keep only modules newly installed.
    if (in_array($cb_type['module'], $modules) && db_field_exists($table, 'machine_name')) {

      // Generate machine names.
      custom_breadcrumbs_features_generate_missing_machine_names($table);
    }
  }
}