You are here

function custom_breadcrumbs_features_enable in Custom Breadcrumbs Features 7.2

Implements hook_enable().

Generate missing machine names (e.g. crumbs created prior to installing this module).

File

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

Code

function custom_breadcrumbs_features_enable() {
  $tables = array_keys(_custom_breadcrumbs_features_get_types());

  // Keep only tables installed.
  $tables = array_filter($tables, 'db_table_exists');

  // Generate machine names.
  foreach ($tables as $table) {
    custom_breadcrumbs_features_generate_missing_machine_names($table);
  }
}