You are here

function tb_megamenu_edit_item_config in The Better Mega Menu 7

1 call to tb_megamenu_edit_item_config()
template_preprocess_tb_megamenu_item in ./tb_megamenu.themes.inc

File

./tb_megamenu.functions.inc, line 407

Code

function tb_megamenu_edit_item_config(&$item_config) {
  if (!isset($item_config['xicon'])) {
    $item_config['xicon'] = "";
  }
  if (!isset($item_config['class'])) {
    $item_config['class'] = "";
  }
  if (!isset($item_config['caption'])) {
    $item_config['caption'] = "";
  }
  if (!isset($item_config['alignsub'])) {
    $item_config['alignsub'] = "";
  }
  if (!isset($item_config['group'])) {
    $item_config['group'] = 0;
  }
  if (!isset($item_config['hidewcol'])) {
    $item_config['hidewcol'] = 0;
  }
  if (!isset($item_config['hidesub'])) {
    $item_config['hidesub'] = 0;
  }
}