You are here

function nodewords_basic_keywords_form in Nodewords: D6 Meta Tags 6.3

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

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

File

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

Code

function nodewords_basic_keywords_form(&$form, $content, $options) {
  $form['keywords'] = array(
    '#tree' => TRUE,
  );
  $form['keywords']['value'] = array(
    '#type' => 'textarea',
    '#title' => t('Keywords'),
    '#description' => t('Enter a comma separated list of keywords. Avoid duplication of words as this will lower your search engine ranking.') . $options['description'],
    '#default_value' => empty($content['value']) ? '' : $content['value'],
    '#element_validate' => array(
      'nodewords_validate_element',
    ),
    '#validate_args' => array(
      'module' => 'nodewords_basic',
      'callback' => 'nodewords_basic_keywords_form_validate',
    ),
    '#cols' => 60,
    '#rows' => 6,
    '#wysiwyg' => FALSE,
  );
}