function xmlsitemap_settings_engines in XML sitemap 5
Same name and namespace in other branches
- 5.2 xmlsitemap/xmlsitemap.module \xmlsitemap_settings_engines()
Menu callback; return search engine settings form.
Related topics
1 string reference to 'xmlsitemap_settings_engines'
- xmlsitemap_menu in ./
xmlsitemap.module - Implementation of hook_menu().
File
- ./
xmlsitemap.module, line 135 - Creates a site map 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 site map when updated.'),
'#default_value' => variable_get('xmlsitemap_submit', FALSE),
'#description' => t('If enabled, search engines will be notified of changes to the site map each time it is updated.'),
);
$form['submission']['xmlsitemap_cron_submit'] = array(
'#type' => 'checkbox',
'#title' => t('Submit site map on cron run.'),
'#default_value' => variable_get('xmlsitemap_cron_submit', FALSE),
'#description' => t('If enabled, search engines will be notified of changes to the site map 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 site map is accessed, containing information about the requestor.'),
);
$form = array_merge($form, module_invoke_all('xmlsitemap_engines', 'form'));
menu_rebuild();
return system_settings_form($form);
}