You are here

function nodewords_basic_robots_settings_form in Nodewords: D6 Meta Tags 6.3

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

File

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

Code

function nodewords_basic_robots_settings_form(&$form, $form_id, $options) {
  switch ($form_id) {
    case 'nodewords_admin_settings_form':
      $checkbox_options = array(
        'noarchive' => t('NOARCHIVE'),
        'noodp' => t('NOODP'),
        'nosnippet' => t('NOSNIPPET'),
        'noydir' => t('NOYDIR'),
      );
      $select_options = array(
        'index,follow' => 'INDEX,FOLLOW',
        'noindex,follow' => 'NOINDEX,FOLLOW',
        'index,nofollow' => 'INDEX,NOFOLLOW',
        'noindex,nofollow' => 'NOINDEX,NOFOLLOW',
      );
      $form['metatags_creation']['nodewords_list_robots_index_follow'] = array(
        '#type' => 'select',
        '#title' => t('Meta tag ROBOTS for lists'),
        '#options' => $select_options,
        '#multiple' => FALSE,
        '#default_value' => variable_get('nodewords_list_index_follow', 'noindex.nofollow'),
      );
      $form['metatags_creation']['nodewords_list_robots_value'] = array(
        '#type' => 'checkboxes',
        '#description' => t('The value to use for the meta tag ROBOTS for the pages that use a pager; this setting is not used for the first page of the list, or when the option to repeat the meta tags for all the pages in the same list is selected.'),
        '#default_value' => variable_get('nodewords_list_value', array()),
        '#options' => $checkbox_options,
        '#checkall' => TRUE,
      );
  }
}