function menu_features_export in Features 7
Same name and namespace in other branches
- 6 includes/features.menu.inc \menu_features_export()
- 7.2 includes/features.menu.inc \menu_features_export()
Implements hook_features_export(). DEPRECATED: This implementation simply migrates deprecated `menu` items to the `menu_links` type.
File
- includes/
features.menu.inc, line 35
Code
function menu_features_export($data, &$export, $module_name = '') {
$pipe = array();
foreach ($data as $path) {
$pipe['menu_links'][] = "features:{$path}";
}
return $pipe;
}