You are here

function xmlsitemap_settings_engines in XML sitemap 5.2

Same name and namespace in other branches
  1. 5 xmlsitemap.module \xmlsitemap_settings_engines()

Menu callback; return search engine settings form.

1 string reference to 'xmlsitemap_settings_engines'
xmlsitemap_menu in xmlsitemap/xmlsitemap.module
Implementation of hook_menu().

File

xmlsitemap/xmlsitemap.module, line 278
Creates a sitemap compatible with the sitemaps.org schema.

Code

function xmlsitemap_settings_engines() {
  $form['submission'] = array(
    '#type' => 'fieldset',
    '#title' => t('Submission settings'),
  );
  $form['submission']['xmlsitemap_submit'] = array(
    '#type' => 'checkbox',
    '#title' => t('Submit the sitemap in content updates'),
    '#default_value' => variable_get('xmlsitemap_submit', FALSE),
    '#description' => t('If enabled, search engines will be notified of changes to the site map each time the site content is updated..'),
  );
  $form['submission']['xmlsitemap_cron_submit'] = array(
    '#type' => 'checkbox',
    '#title' => t('Submit the sitemap on cron run'),
    '#default_value' => variable_get('xmlsitemap_cron_submit', FALSE),
    '#description' => t('If enabled, the search engines will be notified of changes to the sitemap each time cron is run.'),
  );
  $form['submission']['xmlsitemap_log_access'] = array(
    '#type' => 'checkbox',
    '#title' => t('Log access'),
    '#default_value' => variable_get('xmlsitemap_log_access', FALSE),
    '#description' => t('If enabled, a watchdog entry will be made each time the sitemap is accessed, containing information about the requestor.'),
  );
  $form = array_merge($form, module_invoke_all('xmlsitemap_engines', 'form'));
  return system_settings_form($form);
}