function xmlsitemap_link_frontpage_settings in XML sitemap 6.2
Same name and namespace in other branches
- 8 xmlsitemap.module \xmlsitemap_link_frontpage_settings()
- 7.2 xmlsitemap.xmlsitemap.inc \xmlsitemap_link_frontpage_settings()
- 2.x xmlsitemap.module \xmlsitemap_link_frontpage_settings()
XML sitemap link type settings callback for frontpage link entity.
1 string reference to 'xmlsitemap_link_frontpage_settings'
- xmlsitemap_xmlsitemap_link_info in ./
xmlsitemap.xmlsitemap.inc - Implements hook_xmlsitemap_link_info().
File
- ./
xmlsitemap.xmlsitemap.inc, line 242 - XML sitemap integration functions for xmlsitemap.module.
Code
function xmlsitemap_link_frontpage_settings(&$form) {
module_load_include('admin.inc', 'xmlsitemap');
if (user_access('administer site configuration')) {
$form['#description'] = t('The front page path can be changed in the <a href="@url-frontpage">site information configuration</a>.', array(
'@url-frontpage' => url('admin/settings/site-information'),
));
}
$form['xmlsitemap_frontpage_priority'] = array(
'#type' => 'select',
'#title' => t('Priority'),
'#options' => xmlsitemap_get_priority_options(),
'#default_value' => variable_get('xmlsitemap_frontpage_priority', 1.0),
);
$form['xmlsitemap_frontpage_changefreq'] = array(
'#type' => 'select',
'#title' => t('Change frequency'),
'#options' => xmlsitemap_get_changefreq_options(),
'#default_value' => variable_get('xmlsitemap_frontpage_changefreq', XMLSITEMAP_FREQUENCY_DAILY),
);
return $form;
}