You are here

function menu_position_features_export_options in Menu Position 7

Implements hook_features_export_options().

File

./menu_position.features.inc, line 20
Integration with the Features module.

Code

function menu_position_features_export_options() {
  $options = array();
  $fields = db_select('menu_position_rules', 'm')
    ->fields('m', array(
    'machine_name',
    'admin_title',
  ))
    ->execute();
  foreach ($fields as $row) {
    $options[$row->machine_name] = $row->admin_title;
  }
  return $options;
}