You are here

function template_preprocess_tb_megamenu_row in The Better Mega Menu 7

Same name and namespace in other branches
  1. 8 tb_megamenu.module \template_preprocess_tb_megamenu_row()
  2. 2.x tb_megamenu.module \template_preprocess_tb_megamenu_row()
1 string reference to 'template_preprocess_tb_megamenu_row'
tb_megamenu_theme in ./tb_megamenu.module
Implements hook_theme().

File

./tb_megamenu.themes.inc, line 219

Code

function template_preprocess_tb_megamenu_row(&$vars) {
  $row = $vars['row'];
  $cols = array();
  foreach ($row as $col) {
    $cols[] = theme('tb_megamenu_column', array(
      'menu_name' => $vars['menu_name'],
      'col' => $col,
      'parent' => $vars['parent'],
      'level' => $vars['level'],
      'menu_config' => $vars['menu_config'],
      'block_config' => $vars['block_config'],
      'trail' => $vars['trail'],
      'section' => $vars['section'],
    ));
  }
  $vars['columns'] = implode("\n", $cols);
  $vars['classes_array'][] = 'row-fluid';
}