function tb_megamenu_features_export_options in The Better Mega Menu 7
Implements hook_features_export_options().
File
- ./
tb_megamenu.features.inc, line 25 - Features related functions.
Code
function tb_megamenu_features_export_options() {
$menus = array();
// Query the names of menus configured for tb_megamenu.
$query = db_select('tb_megamenus', 'tb');
$query
->fields('tb', array(
'menu_name',
'language',
));
foreach ($query
->execute()
->fetchAll() as $menu) {
$menus[$menu->menu_name . '|' . $menu->language] = $menu->menu_name . '|' . $menu->language;
}
return $menus;
}