function scanner_form_validate in Search and Replace Scanner 6
Same name and namespace in other branches
- 5.2 scanner.module \scanner_form_validate()
- 7 scanner.module \scanner_form_validate()
Validate form input.
File
- ./
scanner.module, line 378 - 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.'));
}
}