function word_link_admin_settings_validate in Word Link 8
Same name and namespace in other branches
- 7 word_link.admin.inc \word_link_admin_settings_validate()
Form validation for a settings page.
File
- ./
word_link.admin.inc, line 92 - Administrative pages for the Word Link module.
Code
function word_link_admin_settings_validate($form, &$form_state) {
$limit = $form_state['values']['word_link_settings']['word_link_limit'];
if (!is_numeric($limit) || (int) $limit < 0) {
form_set_error('word_link_settings][word_link_limit', t('Replace limit must be numeric.'));
}
}