xmlsitemap_priority_options($option = NULL)
contributions/modules/xmlsitemap/xmlsitemap.module, line 215
Get an array of site map priority options.
$option: If not given, the array will include priority values from 0.0 to 1.0.
An array of priority options.
| Name | Description |
|---|---|
| XML Sitemap | Notify search engines of site updates. |
function xmlsitemap_priority_options($option = NULL) {
if ($option == 'default' || $option == 'both') {
$options['NULL'] = t('Default');
}
$options['1'] = '1.0';
$values = array('0.9', '0.8', '0.7', '0.6', '0.5', '0.4', '0.3', '0.2', '0.1');
foreach ($values as $value) {
$options[$value] = $value;
}
$options['0'] = '0.0';
if ($option == 'exclude' || $option == 'both') {
$options['-1'] = t('Not in site map');
}
return $options;
}