function rb_misc_action_set_active_menu_item_form in Rules Bonus Pack 6
Configuration form for 'rb_misc_action_set_active_menu_item'.
File
- ./
rb_misc.module, line 412 - Miscellaneous conditions and actions for Rules.
Code
function rb_misc_action_set_active_menu_item_form($settings, &$form) {
$form['settings']['menu_item'] = array(
'#type' => 'select',
'#default_value' => $settings['menu_item'],
'#title' => t('Menu item'),
'#options' => menu_parent_options(menu_get_menus(), array(
'mlid' => 0,
)),
'#description' => t('Select the menu item that should be marked active.'),
);
}