You are here

function menu_custom_features_export_options in Features 7

Same name and namespace in other branches
  1. 6 includes/features.menu.inc \menu_custom_features_export_options()
  2. 7.2 includes/features.menu.inc \menu_custom_features_export_options()

Implements hook_features_export_options().

File

includes/features.menu.inc, line 46

Code

function menu_custom_features_export_options() {
  $options = array();
  $result = db_query("SELECT * FROM {menu_custom} ORDER BY title", array(), array(
    'fetch' => PDO::FETCH_ASSOC,
  ));
  foreach ($result as $menu) {
    $options[$menu['menu_name']] = $menu['title'];
  }
  return $options;
}