function recently_read_settings_validate in Recently Read 7.3
Same name and namespace in other branches
- 6 recently_read.module \recently_read_settings_validate()
- 7 recently_read.module \recently_read_settings_validate()
- 7.2 recently_read.admin.inc \recently_read_settings_validate()
File
- ./
recently_read.module, line 130 - Recently read module file. Displays a history of recently read entities.
Code
function recently_read_settings_validate($form, &$form_state) {
foreach ($form_state['values']['rr_config'] as $key => $config) {
if (!is_numeric($config['max_record']) || $config['max_record'] < 1) {
form_set_error('rr_config][' . $key . '][max_record', t('%field must be a positive integer value.', array(
'%field' => $key,
)));
}
}
}