You are here

function power_menu_get_mlid in Power Menu 6

Same name and namespace in other branches
  1. 7 power_menu.module \power_menu_get_mlid()
2 calls to power_menu_get_mlid()
power_menu_block in ./power_menu.module
implementation of hook_block().
power_menu_preprocess_page in ./power_menu.module
Implementation of hook_preproces_page().

File

./power_menu.module, line 569
This module provides some additional menu features. The features are not actually new, but are part of other modules. it's though very cumbersome to creating a new menu item, because one has to go to all the different places to configure these…

Code

function power_menu_get_mlid($href, $pms = '') {
  if ($pms == '') {
    $pms = power_menu_get_menu();
  }
  return db_fetch_object(db_query("SELECT * FROM {menu_links} WHERE link_path='%s' AND menu_name='%s'", $href, $pms));
}