function subuser_settings_form_validate in Subuser 6
Validate the subuser settings form.
1 string reference to 'subuser_settings_form_validate'
- subuser_settings_form in ./
subuser.pages.inc - Sub user settings form.
File
- ./
subuser.pages.inc, line 170 - Allows users of a particular role to create sub user account in another role.
Code
function subuser_settings_form_validate(&$form, &$form_state) {
// Make sure the subuser_limit is a number.
if (!is_numeric($form_state['values']['subuser_limit'])) {
form_set_error('subuser_limit', t('The !limit must be specified as an integer.', array(
'!limit' => $form['advanced']['subuser_limit']['#title'],
)));
}
}