You are here

function menu_position_set_link in Menu Position 7.2

Same name and namespace in other branches
  1. 7 menu_position.module \menu_position_set_link()

Dynamically sets the menu item for a specified rule.

Parameters

$rid: The rule ID.

$link: The menu item that should be used for the rule.

1 call to menu_position_set_link()
menu_position_activate_rule in ./menu_position.module
Evaluates all rules based on the given path.

File

./menu_position.module, line 372
Provides menu links for dynamic positioning of nodes based on configurable rules.

Code

function menu_position_set_link($rid, $link) {
  menu_position_get_link('menu-position/' . $rid, $link);
}