function rules_action_load_user_form in Rules 6
Related topics
File
- rules/
modules/ user.rules_forms.inc, line 71 - Rules configuration forms for the user module
Code
function rules_action_load_user_form($settings, &$form) {
$form['settings']['username'] = array(
'#type' => 'textfield',
'#title' => t('User name'),
'#maxlength' => 60,
'#autocomplete_path' => 'user/autocomplete',
'#default_value' => isset($settings['username']) ? $settings['username'] : '',
'#weight' => -1,
'#description' => t('Name of the user to be loaded.'),
);
$form['settings']['userid'] = array(
'#type' => 'textfield',
'#title' => t('User id'),
'#default_value' => isset($settings['userid']) ? $settings['userid'] : '',
'#description' => t('Id of the user to be loaded.'),
);
}