You are here

function nodewords_basic_description_form in Nodewords: D6 Meta Tags 6.3

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

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

File

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

Code

function nodewords_basic_description_form(&$form, $content, $options) {
  $form['description'] = array(
    '#tree' => TRUE,
  );
  $form['description']['value'] = array(
    '#type' => 'textarea',
    '#title' => t('Description'),
    '#description' => t('Enter a description. Limit your description to about 20 words, with a maximum of %count characters. It should not contain any HTML tags or other formatting.', array(
      '%count' => variable_get('nodewords_max_size', 350),
    )) . $options['description'],
    '#default_value' => empty($content['value']) ? '' : $content['value'],
    '#cols' => 60,
    '#rows' => 6,
    '#wysiwyg' => FALSE,
  );
}