function menu_position_edit_rule_form in Menu Position 7.2
Same name and namespace in other branches
- 6 menu_position.admin.inc \menu_position_edit_rule_form()
- 7 menu_position.admin.inc \menu_position_edit_rule_form()
Menu callback; Edits rules.
1 string reference to 'menu_position_edit_rule_form'
- menu_position_menu in ./
menu_position.module - Implements hook_menu().
File
- ./
menu_position.admin.inc, line 315 - Provides infrequently used functions and hooks for menu_position.
Code
function menu_position_edit_rule_form($form, &$form_state, $rid = 0) {
// Make sure rid is set.
if ($rid == 0) {
drupal_goto('admin/structure/menu-position');
return;
}
// Grab the rule from the database.
$form_state['#menu-position-rule'] = menu_position_read_rule($rid);
return menu_position_rule_form($form, $form_state);
}