function xmlsitemap_get_changefreq_options in XML sitemap 8
Same name and namespace in other branches
- 6.2 xmlsitemap.module \xmlsitemap_get_changefreq_options()
- 7.2 xmlsitemap.module \xmlsitemap_get_changefreq_options()
- 2.x xmlsitemap.module \xmlsitemap_get_changefreq_options()
Gets xmlsitemap frequency options.
@todo Document this function. @todo Make these translatable
Return value
array Frequency options.
6 calls to xmlsitemap_get_changefreq_options()
- XmlSitemapCustomAddForm::buildForm in xmlsitemap_custom/
src/ Form/ XmlSitemapCustomAddForm.php - Form constructor.
- XmlSitemapCustomEditForm::buildForm in xmlsitemap_custom/
src/ Form/ XmlSitemapCustomEditForm.php - Form constructor.
- xmlsitemap_add_form_link_options in ./
xmlsitemap.module - Add a link's XML sitemap options to the link's form.
- xmlsitemap_add_link_bundle_settings in ./
xmlsitemap.module - Add the link type XML sitemap options to the link type's form.
- xmlsitemap_get_changefreq in ./
xmlsitemap.module - Determine the frequency of updates to a link.
File
- ./
xmlsitemap.module, line 1359 - xmlsitemap XML sitemap
Code
function xmlsitemap_get_changefreq_options() {
return [
XMLSITEMAP_FREQUENCY_ALWAYS => 'always',
XMLSITEMAP_FREQUENCY_HOURLY => 'hourly',
XMLSITEMAP_FREQUENCY_DAILY => 'daily',
XMLSITEMAP_FREQUENCY_WEEKLY => 'weekly',
XMLSITEMAP_FREQUENCY_MONTHLY => 'monthly',
XMLSITEMAP_FREQUENCY_YEARLY => 'yearly',
];
}