You are here

function nodewords_basic_revisit_after_form 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()
  2. 6.2 nodewords_basic/includes/nodewords_basic.nodewords.tags.inc \nodewords_basic_revisit_after_form()

Set the form fields used to implement the options for the meta tag.

File

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

Code

function nodewords_basic_revisit_after_form(&$form, $content, $options) {
  $form['revisit-after'] = array(
    '#tree' => TRUE,
  );
  $form['revisit-after']['value'] = array(
    '#type' => 'textfield',
    '#title' => t('Revisit after'),
    '#description' => t('The meta tag REVISIT-AFTER defines how often a search engine or spider should come to your website for re-indexing. This tag is used for websites that change their content and on a regular basis. This tag can also be beneficial in boosting your rankings if search engines display results based on the most recent submissions.') . $options['description'],
    '#default_value' => empty($content['value']) ? '' : $content['value'],
    '#size' => 3,
    '#element_validate' => array(
      'nodewords_validate_element',
    ),
    '#validate_args' => array(
      'module' => 'nodewords_basic',
      'callback' => 'nodewords_basic_revisit_after_form_validate',
    ),
    '#maxlength' => 3,
    '#field_suffix' => t('day(s)'),
  );
}