function recently_read_settings_validate in Recently Read 7
Same name and namespace in other branches
- 6 recently_read.module \recently_read_settings_validate()
- 7.3 recently_read.module \recently_read_settings_validate()
- 7.2 recently_read.admin.inc \recently_read_settings_validate()
File
- ./
recently_read.module, line 242 - Recently read module file. Displays a history of recently read nodes by currently logged in user.
Code
function recently_read_settings_validate($form, &$form_state) {
$max = $form_state['values']['max_entries'];
if (!is_numeric($max) || $max < 1) {
form_set_error('max_entries', t('%field must be a positive integer value.', array(
'%field' => $form['max_entries']['#title'],
)));
}
}