You are here

function scanner_form_validate in Search and Replace Scanner 7

Same name and namespace in other branches
  1. 5.2 scanner.module \scanner_form_validate()
  2. 6 scanner.module \scanner_form_validate()

Form validation handler for scanner_form().

See also

scanner_form()

scanner_form_submit()

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.'));
  }
}