function rb_numbers_action_random_form in Rules Bonus Pack 6
Configuration form for 'rb_numbers_action_random'.
File
- ./
rb_numbers.module, line 74 - Functions for extending number management with Rules.
Code
function rb_numbers_action_random_form($settings, &$form) {
$form['settings']['min'] = array(
'#type' => 'textfield',
'#title' => t('Lowest value'),
'#default_value' => $settings['min'],
);
$form['settings']['max'] = array(
'#type' => 'textfield',
'#title' => t('Highest value'),
'#default_value' => $settings['max'],
);
// TODO: Write validations for the settings, to assure that they are actually
// sensible integers.
}