function homebox_configure_form_validate in Homebox 6
Same name and namespace in other branches
- 6.3 homebox.admin.inc \homebox_configure_form_validate()
- 6.2 homebox.admin.inc \homebox_configure_form_validate()
- 7.3 homebox.admin.inc \homebox_configure_form_validate()
- 7.2 homebox.admin.inc \homebox_configure_form_validate()
Forms for administration settings
_state
Parameters
$form:
1 string reference to 'homebox_configure_form_validate'
- homebox_configure_form in ./
homebox.admin.inc - Forms for administration settings
File
- ./
homebox.admin.inc, line 507 - Home box admin file, takes care admin interface for homebox
Code
function homebox_configure_form_validate($form, &$form_state) {
$columns = (int) $form_state['values']['columns'];
if ($columns < 1 || $columns > 9) {
form_set_error('columns', t('You must enter a value between 1 and 9.'));
}
}