You are here

function menu_token_get in Menu Token 6

2 calls to menu_token_get()
menu_token_form_menu_edit_item_alter in ./menu_token.admin.inc
Implementation of hook_form_FORM_ID_alter().
menu_token_translated_menu_link_alter in ./menu_token.module
Implementation of hook_translated_menu_link().

File

./menu_token.inc, line 21

Code

function menu_token_get($mlid) {
  global $menu_token_conf;
  if (!$mlid) {
    return NULL;
  }
  if (!isset($menu_token_conf[$mlid])) {
    $item_conf = db_fetch_array(db_query('SELECT * FROM {menu_token} WHERE mlid = %d', $mlid));
    $menu_token_conf[$mlid] = empty($item_conf) ? NULL : $item_conf;
  }
  return $menu_token_conf[$mlid];
}