You are here

function nodewords_extra_shorturl_form in Nodewords: D6 Meta Tags 6

Same name and namespace in other branches
  1. 6.2 nodewords_extra/includes/nodewords_extra.nodewords.tags.inc \nodewords_extra_shorturl_form()

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

File

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

Code

function nodewords_extra_shorturl_form(&$form, $content, $options) {
  $form['shorturl'] = array(
    '#tree' => TRUE,
    '#weight' => -138,
  );
  $form['shorturl']['value'] = array(
    '#type' => 'textfield',
    '#title' => t('Short URL'),
    '#description' => t('Short URLs are used instead of the original URL because they are shorter, and easier to remember. Short URLs are provided by some web services, such as <a href="@bitly">bit.ly</a>, <a href="@shorturl">ShortURL</a>, and <a href="@tinyurl">TinyURL</a>.', array(
      '@bitly' => 'http://bit.ly',
      '@shorturl' => 'http://shorturl.com',
      '@tinyurl' => 'http://tinyurl.com',
    )),
    '#default_value' => empty($content['value']) ? '' : $content['value'],
    '#element_validate' => array(
      'nodewords_extra_shorturl_form_validate',
    ),
    '#size' => 60,
    '#maxlength' => variable_get('nodewords_max_size', 350),
  );
}