You are here

function template_preprocess_om_maximenu_wrapper in OM Maximenu 8

Same name and namespace in other branches
  1. 6 inc/om_maximenu.render.inc \template_preprocess_om_maximenu_wrapper()
  2. 7 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 899
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);
}