function menu_position_expand_parent_link in Menu Position 7
Same name and namespace in other branches
- 7.2 menu_position.module \menu_position_expand_parent_link()
Dynamically expands the parent menu item for a rule.
Parameters
int $plid: The parent menu item's mlid.
2 calls to menu_position_expand_parent_link()
- menu_position_activate_rule in ./
menu_position.module - Activates a specific rule for the given context.
- menu_position_translated_menu_link_alter in ./
menu_position.module - Implements hook_translated_menu_link_alter().
File
- ./
menu_position.module, line 516 - Provides dynamic menu links based on configurable rules.
Code
function menu_position_expand_parent_link($plid = NULL) {
$link_id =& drupal_static(__FUNCTION__, NULL);
if (isset($plid)) {
$link_id = $plid;
}
return $link_id;
}