function rb_misc_condition_arg_form in Rules Bonus Pack 6
Configuration form for 'rb_misc_condition_arg'.
File
- ./
rb_misc.module, line 147 - Miscellaneous conditions and actions for Rules.
Code
function rb_misc_condition_arg_form($settings, &$form) {
$form['settings']['arg_part'] = array(
'#type' => 'select',
'#options' => range(0, 9),
'#default_value' => $settings['arg_part'],
'#title' => t('Part of path argument'),
'#description' => t('The part of the path argument to verify. Note that
numbering starts with zero.'),
);
$form['settings']['arg_value'] = array(
'#type' => 'textfield',
'#default_value' => $settings['arg_value'],
'#title' => t('Path argument value'),
'#description' => t('The value the path argument should have.'),
);
}