You are here

function xmlsitemap_settings_sitemap in XML sitemap 5

Same name and namespace in other branches
  1. 5.2 xmlsitemap/xmlsitemap.module \xmlsitemap_settings_sitemap()

Menu callback; return site map settings form.

Related topics

2 string references to 'xmlsitemap_settings_sitemap'
xmlsitemap_menu in ./xmlsitemap.module
Implementation of hook_menu().
xmlsitemap_node_form_alter in xmlsitemap_node/xmlsitemap_node.module
Implementation of hook_form_alter().

File

./xmlsitemap.module, line 94
Creates a site map compatible with the sitemaps.org schema.

Code

function xmlsitemap_settings_sitemap() {
  $form['xmlsitemap_chunk_size'] = array(
    '#type' => 'textfield',
    '#title' => t('Chunk size'),
    '#default_value' => variable_get('xmlsitemap_chunk_size', 50000),
    '#size' => 10,
    '#maxlength' => 5,
    '#description' => t('This is the number of links to include in one site map. Values can range between 1 and 50,000. If the total number of links exceeds the chunk size, multiple site maps will be generated.'),
    '#weight' => -1,
  );
  $form['xmlsitemap_front_page_priority'] = array(
    '#type' => 'select',
    '#title' => t('Front page priority'),
    '#default_value' => variable_get('xmlsitemap_front_page_priority', 1),
    '#options' => xmlsitemap_priority_options(),
    '#description' => t('This is the absolute priority for the front page.'),
    '#weight' => -1,
  );
  return system_settings_form($form);
}