function popupmenu_features_export in Popup 8
Same name and namespace in other branches
- 7 modules/popup_menu/includes/popup_menu.features.inc \popupmenu_features_export()
- 7.x modules/popup_menu/includes/popup_menu.features.inc \popupmenu_features_export()
- 6.x modules/popup_menu/includes/popup_menu.features.inc \popupmenu_features_export()
Implementation of [component]_features_export()
File
- modules/
popup_menu/ includes/ popup_menu.features.inc, line 26
Code
function popupmenu_features_export($data, &$export, $module_name = '') {
module_load_include('inc', 'popup_menu', 'includes/popup_menu.util');
$pipe = array();
$settings = _popup_menu_settings();
$export['dependencies']['popup_menu'] = 'popup_menu';
foreach ($data as $instance) {
$pipe['menu_custom'][] = $instance;
if (isset($settings[$instance]['format'])) {
$pipe['popupformat'][] = $settings[$instance]['format'];
}
$export['features']['popupmenu'][$instance] = $instance;
}
return $pipe;
}