xmlsitemap_engines_menu($may_cache)
contributions/modules/xmlsitemap/xmlsitemap_engines/xmlsitemap_engines.module, line 225
Implementation of hook_menu().
| Name | Description |
|---|---|
| XML Sitemap | Notify search engines of site updates. |
function xmlsitemap_engines_menu($may_cache) {
$items = array();
$access_content = user_access('access content');
if ($may_cache) {
if ($verify = variable_get('xmlsitemap_engines_google_verify', '')) {
$items[] = array(
'path' => $verify,
'title' => t('Google verification page'),
'callback' => '_xmlsitemap_engines_verify',
'callback arguments' => array('google'),
'type' => MENU_CALLBACK,
'access' => $access_content,
);
}
if (($verify = variable_get('xmlsitemap_engines_yahoo_verify', '')) != '') {
$items[] = array(
'path' => $verify,
'title' => t('Yahoo! verification page'),
'callback' => '_xmlsitemap_engines_verify',
'callback arguments' => array('yahoo'),
'type' => MENU_CALLBACK,
'access' => $access_content,
);
}
if (($verify = variable_get('xmlsitemap_engines_live_verify', 'LiveSearchSiteAuth.xml')) != '') {
$items[] = array(
'path' => $verify,
'title' => t('Windows Live verification page'),
'callback' => '_xmlsitemap_engines_verify',
'callback arguments' => array('live'),
'type' => MENU_CALLBACK,
'access' => $access_content,
);
}
}
return $items;
}