function template_preprocess_om_maximenu_roundabout in OM Maximenu 7
Same name and namespace in other branches
- 8 inc/om_maximenu.render.inc \template_preprocess_om_maximenu_roundabout()
- 6 inc/om_maximenu.render.inc \template_preprocess_om_maximenu_roundabout()
Process variables for om_maximenu_roundabout.tpl.php
File
- inc/
om_maximenu.render.inc, line 841 - OM Maximenu Render
Code
function template_preprocess_om_maximenu_roundabout(&$vars) {
// sort by weight
uasort($vars['links']['links'], 'om_sort_by_weight');
$links = $vars['links'];
// menu name
$vars['maximenu_name'] = om_string_name($links['title']);
// disable link when active
$vars['disabled'] = isset($links['disabled']) && $links['disabled'] == 1 ? 1 : 0;
$vars['code'] = $links['code'];
$vars['count'] = 0;
$vars['total'] = count($links['links']);
$vars['theme_hook_suggestions'][] = 'om_maximenu_roundabout__' . $vars['menu_key'];
$vars['theme_hook_suggestions'][] = 'om_maximenu_roundabout__' . preg_replace('/-/', '_', $vars['maximenu_name']);
$vars['theme_hook_suggestions'][] = 'om_maximenu_roundabout__' . $links['output'];
//dsm($vars);
}