You are here

function nodewords_extra_shorturl_form_validate in Nodewords: D6 Meta Tags 6

1 string reference to 'nodewords_extra_shorturl_form_validate'
nodewords_extra_shorturl_form in nodewords_extra/nodewords_extra.module
Set the form fields used to implement the options for the meta tag.

File

nodewords_extra/nodewords_extra.module, line 676
Define extra meta tags for Drupal pages.

Code

function nodewords_extra_shorturl_form_validate($element, &$form_state) {
  if (!empty($element['#value'])) {
    if (!valid_url($element['#value'], TRUE)) {
      form_error($element, t('The short URL is not a valid absolute URL.'));
    }
  }
}