You are here

function nodewords_settings in Nodewords: D6 Meta Tags 6.2

General settings form.

File

./nodewords.admin.inc, line 525
Administration forms.

Code

function nodewords_settings($form_state) {
  $form = array();
  $form['nodewords:content-length'] = array(
    '#type' => 'textfield',
    '#title' => t('Content length'),
    '#description' => t('The maximum number of characters the content of a meta tag can contain. Set to 0 to allow any length. If unsure, set it to 255 (a common cut-off length search engines use).'),
    '#default_value' => variable_get('nodewords:content-length', 255),
    '#size' => 6,
  );
  $form['nodewords:repeat-on-pager'] = array(
    '#type' => 'checkbox',
    '#title' => t('Repeat meta tags for lists'),
    '#description' => t('Some search engines punish sites that use the same meta tags on different pages. Check this option if you want to repeat the same meta tags on pages that use the pager (such as the default front page). If unchecked, Drupal will only display the meta tags on the first page and not for subsequent pages. If unsure, unselect this option.'),
    '#default_value' => variable_get('nodewords:repeat-on-pager', FALSE),
  );
  $form['nodewords:use-front-page'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use front page meta tags'),
    '#description' => t('Check this option if you want to use the meta tags for the front page even if the default front page specified is a view, panel or node - in this case, the meta tags specified for the view, panel or node will be ignored. If you want to use the meta tags of the view, panel or node instead, uncheck this option. If unsure, select this option and specify the meta tags you want on the meta tags for the front page.'),
    '#default_value' => variable_get('nodewords:use-front-page', TRUE),
  );
  return system_settings_form($form);
}