You are here

function tb_megamenu_get_counter in The Better Mega Menu 7

1 call to tb_megamenu_get_counter()
template_preprocess_tb_megamenu_column in ./tb_megamenu.themes.inc

File

./tb_megamenu.functions.inc, line 652

Code

function tb_megamenu_get_counter($key) {
  $value =& drupal_static($key, 0);
  $value++;
  global $tb_elements_counter;
  if (!$tb_elements_counter) {
    $tb_elements_counter = array();
  }
  $tb_elements_counter[$key] = $value;
  return "tb-megamenu-{$key}-{$value}";
}