You are here

function custom_breadcrumbs_features_generic_export_options in Custom Breadcrumbs Features 7.2

Generic function for hook_features_export_options().

Parameters

$table: Table storing crumbs.

Return value

Options array as expected by hook_features_export_options().

7 calls to custom_breadcrumbs_features_generic_export_options()
custom_breadcrumbsapi_features_export_options in includes/custom_breadcrumbs_features.features.inc
Implements hook_features_export_options(). [component hook]
custom_breadcrumbs_panels_features_export_options in includes/custom_breadcrumbs_features.features.inc
Implements hook_features_export_options(). [component hook]
custom_breadcrumbs_paths_features_export_options in includes/custom_breadcrumbs_features.features.inc
Implements hook_features_export_options(). [component hook]
custom_breadcrumbs_taxonomy_term_features_export_options in includes/custom_breadcrumbs_features.features.inc
Implements hook_features_export_options(). [component hook]
custom_breadcrumbs_taxonomy_vocabulary_features_export_options in includes/custom_breadcrumbs_features.features.inc
Implements hook_features_export_options(). [component hook]

... See full list

File

includes/custom_breadcrumbs_features.features.inc, line 17
Code to provide custom_breadcrumbs with features integration.

Code

function custom_breadcrumbs_features_generic_export_options($table) {
  $options = array();
  $result = db_select($table, 'cb')
    ->fields('cb', array(
    'machine_name',
    'name',
  ))
    ->execute();
  foreach ($result as $crumb) {
    $options[$crumb->machine_name] = $crumb->name;
  }
  return $options;
}