You are here

function nodewords_extra_shorturl_form in Nodewords: D6 Meta Tags 6.2

Same name and namespace in other branches
  1. 6 nodewords_extra/nodewords_extra.module \nodewords_extra_shorturl_form()

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

File

nodewords_extra/includes/nodewords_extra.nodewords.tags.inc, line 267
Nodewords support file.

Code

function nodewords_extra_shorturl_form(&$form, $content, $options) {
  $form['shorturl'] = array(
    '#tree' => TRUE,
  );
  $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>. Enter the absolute URL.', array(
      '@bitly' => 'http://bit.ly',
      '@shorturl' => 'http://shorturl.com',
      '@tinyurl' => 'http://tinyurl.com',
    )) . $options['description'],
    '#default_value' => empty($content['value']) ? '' : $content['value'],
    '#element_validate' => array(
      'nodewords_validate_element',
    ),
    '#maxlength' => variable_get('nodewords_max_size', 350),
  );
}