You are here

function nodewords_basic_revisit_after_form_validate in Nodewords: D6 Meta Tags 6.3

Same name and namespace in other branches
  1. 6 nodewords_basic/nodewords_basic.module \nodewords_basic_revisit_after_form_validate()
  2. 6.2 nodewords_basic/includes/nodewords_basic.nodewords.tags.inc \nodewords_basic_revisit_after_form_validate()

Validate the meta tag value.

1 string reference to 'nodewords_basic_revisit_after_form_validate'
nodewords_basic_revisit_after_form in nodewords_basic/includes/nodewords_basic.nodewords.tags.inc
Set the form fields used to implement the options for the meta tag.

File

nodewords_basic/includes/nodewords_basic.nodewords.tags.inc, line 208
Meta tags definition file.

Code

function nodewords_basic_revisit_after_form_validate($element, &$form_state) {
  if (!preg_match('/^[0-9]*$/', $element['#value'])) {
    form_error($element, t('The meta tag REVISIT-AFTER value must be a positive number.'));
  }
}