function _menu_links_features_export_options_recurse in Features 6
1 call to _menu_links_features_export_options_recurse()
- menu_links_features_export_options in includes/
features.menu.inc - Implementation of hook_features_export_options().
File
- includes/
features.menu.inc, line 175
Code
function _menu_links_features_export_options_recurse($tree, $menu_name, $indent, &$menu_links) {
// We don't want to use _menu_parents_recurse as that could potentially cut out some
// options as not being suitable for parents which we still want to export. Also we can
// save on additional calls to the database.
foreach ($tree as $data) {
if ($data['link']['hidden'] >= 0) {
$title = $indent . ' ' . truncate_utf8($data['link']['title'], 30, TRUE, FALSE);
if ($data['link']['hidden']) {
$title .= ' (' . t('disabled') . ')';
}
$menu_links[menu_links_features_identifier($data['link'])] = "{$menu_name}: {$title}";
if ($data['below']) {
_menu_links_features_export_options_recurse($data['below'], $menu_name, $indent . '--', $menu_links);
}
}
}
}