function scanner_form_validate in Search and Replace Scanner 7
Same name and namespace in other branches
- 5.2 scanner.module \scanner_form_validate()
- 6 scanner.module \scanner_form_validate()
Form validation handler for scanner_form().
See also
File
- ./
scanner.module, line 389 - Search and Replace Scanner - works on all nodes text content.
Code
function scanner_form_validate($form, &$form_state) {
$search = trim($form_state['values']['search']);
if ($search == '') {
form_set_error('search', t('Please enter some keywords.'));
}
}