You are here

function scanner_form_validate in Search and Replace Scanner 5.2

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

Validate form input.

File

./scanner.module, line 357
Search and Replace Scanner - works on all nodes text content.

Code

function scanner_form_validate($form_id, $form_values) {
  $search = trim($form_values['search']);
  if ($search == '') {
    form_set_error('search', t('Please enter some keywords.'));
  }
}