function menu_custom_configuration_export in Configuration Management 7
Implements hook_configuration_export().
File
- includes/
configuration.menu.inc, line 58
Code
function menu_custom_configuration_export($data, &$export, $module_name = '') {
// Default hooks are provided by the feature module so we need to add
// it as a dependency.
$export['dependencies']['configuration'] = 'configuration';
$export['dependencies']['menu'] = 'menu';
// Collect a menu to module map
$pipe = array();
$map = configuration_get_default_map('menu_custom', 'menu_name');
foreach ($data as $menu_name) {
// If this menu is provided by a different module, add it as a dependency.
if (isset($map[$menu_name]) && $map[$menu_name] != $module_name) {
$export['dependencies'][$map[$menu_name]] = $map[$menu_name];
}
$export['configuration']['menu_custom'][$menu_name] = $menu_name;
}
return $pipe;
}