@@ -116,10 +121,13 @@ function xmlsitemap_help($route_name, RouteMatchInterface $route_match) {
case'entity.xmlsitemap.edit_form':
case'entity.xmlsitemap.delete_form':
return;
case'xmlsitemap.admin_search':
break;
case'xmlsitemap.admin_search_list':
break;
case'xmlsitemap.admin_rebuild':
$output.='<p>'.t("This action rebuilds your site's XML sitemap and regenerates the cached files, and may be a lengthy process. If you just installed XML sitemap, this can be helpful to import all your site's content into the sitemap. Otherwise, this should only be used in emergencies.").'</p>';
}
...
...
@@ -226,7 +234,7 @@ function xmlsitemap_config_variables() {
'regenerate_last'=>NULL,
'custom_links'=>NULL,
'priority_default'=>NULL,
'languages'=>NULL
'languages'=>NULL,
);
}
...
...
@@ -244,7 +252,7 @@ function xmlsitemap_state_variables() {
'xmlsitemap_generated_last'=>0,
'xmlsitemap_developer_mode'=>0,
'max_chunks'=>NULL,
'max_filesize'=>NULL
'max_filesize'=>NULL,
);
}
...
...
@@ -442,7 +450,7 @@ function xmlsitemap_sitemap_uri(XmlSitemapInterface $sitemap) {
drupal_set_message(t('XML sitemap settings have been modified and the files should be regenerated. You can <a href="@run-cron">run cron manually</a> to regenerate the cached files.',array('@run-cron'=>Url::fromRoute('system.run_cron',[],array('query'=>drupal_get_destination()))->toString())),'warning',FALSE);
drupal_set_message(t('XML sitemap settings have been modified and the files should be regenerated. You can <a href="@run-cron">run cron manually</a> to regenerate the cached files.',array('@run-cron'=>Url::fromRoute('system.run_cron',[],array('query'=>drupal_get_destination()))->toString())),'warning',FALSE);
@@ -2329,7 +2341,7 @@ function xmlsitemap_check_status() {
if($messages){
$messages=array(
'#type'=>'item_list',
'#items'=>array($messages)
'#items'=>array($messages),
);
$message=t('One or more problems were detected with your XML sitemap configuration: !messages',array('!messages'=>\Drupal::service('renderer')->render($messages)));
drupal_set_message($message,'warning',FALSE);
...
...
@@ -2343,7 +2355,6 @@ function xmlsitemap_check_status() {