You are here

function nodewords_extra_location_form in Nodewords: D6 Meta Tags 6.2

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

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

File

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

Code

function nodewords_extra_location_form(&$form, $content, $options) {
  $form['location'] = array(
    '#tree' => TRUE,
  );
  $form['location']['latitude'] = array(
    '#type' => 'textfield',
    '#title' => t('Latitude'),
    '#description' => t('Enter a value between -180, and +180; any value outside the range will not be used.') . $options['description'],
    '#default_value' => empty($content['latitude']) ? '' : $content['latitude'],
    '#maxlength' => variable_get('nodewords_max_size', 350),
  );
  $form['location']['longitude'] = array(
    '#type' => 'textfield',
    '#title' => t('Longitude'),
    '#description' => t('Enter a value between -180, and +180; any value outside the range will not be used.') . $options['description'],
    '#default_value' => empty($content['longitude']) ? '' : $content['longitude'],
    '#maxlength' => variable_get('nodewords_max_size', 350),
  );
}