You are here

function custom_breadcrumbs_features_features_api in Custom Breadcrumbs Features 7.2

Implements hook_features_api().

File

./custom_breadcrumbs_features.module, line 59
Module file for custom_breadcrumbs_features.

Code

function custom_breadcrumbs_features_features_api() {
  $cb_types = _custom_breadcrumbs_features_get_types();

  // Keep only installed tables.
  $tables = array_filter(array_keys($cb_types), 'db_table_exists');
  $exports = array();
  foreach ($tables as $table) {
    $exports[$table] = array(
      'name' => $cb_types[$table]['name'],
      'feature_source' => TRUE,
      'default_hook' => $table . '_features_default_settings',
      'file' => drupal_get_path('module', 'custom_breadcrumbs_features') . '/includes/custom_breadcrumbs_features.features.inc',
      'default_file' => FEATURES_DEFAULTS_INCLUDED_COMMON,
    );
  }
  return $exports;
}