You are here

function power_menu_get_mlid in Power Menu 7

Same name and namespace in other branches
  1. 6 power_menu.module \power_menu_get_mlid()

@todo Please document this function.

See also

http://drupal.org/node/1354

1 call to power_menu_get_mlid()
power_menu_preprocess_page in ./power_menu.module
Implements hook_preproces_page().

File

./power_menu.module, line 590
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_query("SELECT * FROM {menu_links} WHERE link_path = :link_path AND menu_name = :menu_name", array(
    ':link_path' => $href,
    ':menu_name' => $pms,
  ))
    ->fetch();
}