You are here

function xmlsitemap_engines_xmlsitemap_sitemap_operations in XML sitemap 8

Same name and namespace in other branches
  1. 6.2 xmlsitemap_engines/xmlsitemap_engines.module \xmlsitemap_engines_xmlsitemap_sitemap_operations()
  2. 7.2 xmlsitemap_engines/xmlsitemap_engines.module \xmlsitemap_engines_xmlsitemap_sitemap_operations()
  3. 2.x xmlsitemap_engines/xmlsitemap_engines.module \xmlsitemap_engines_xmlsitemap_sitemap_operations()

Implements hook_xmlsitemap_sitemap_operations().

File

xmlsitemap_engines/xmlsitemap_engines.module, line 229
Main file for the XML sitemap engines.

Code

function xmlsitemap_engines_xmlsitemap_sitemap_operations() {
  if (xmlsitemap_engines_can_submit()) {
    $operations['xmlsitemap_engines_submit'] = [
      'label' => t('Submit to search engines'),
      'action past' => t('Submitted'),
      'callback' => 'xmlsitemap_engines_submit_engines',
    ];
    return $operations;
  }
}