function template_preprocess_om_maximenu_wrapper in OM Maximenu 7
Same name and namespace in other branches
- 8 inc/om_maximenu.render.inc \template_preprocess_om_maximenu_wrapper()
- 6 inc/om_maximenu.render.inc \template_preprocess_om_maximenu_wrapper()
Process variables for om_maximenu_wrapper.tpl.php
File
- inc/
om_maximenu.render.inc, line 930 - OM Maximenu Render
Code
function template_preprocess_om_maximenu_wrapper(&$vars) {
$links = $vars['links'];
$vars['maximenu_name'] = om_string_name($links['title']);
$vars['link_code'] = isset($links['code']) ? trim($links['code']) : 'om-u' . $vars['user']->uid . '-' . mt_rand();
$vars['theme_hook_suggestions'][] = 'om_maximenu_wrapper__' . $vars['link_code'];
$vars['theme_hook_suggestions'][] = 'om_maximenu_wrapper__' . $vars['maximenu_name'];
//dsm($vars);
}