drupal_set_message(t("You can now include content into the <a href='@sitemap_url' target='_blank'>XML sitemap</a> by visiting the corresponding entity type edit pages (e.g. <a href='@content_type_url' target='_blank'>content type</a>, <a href='@taxonomy_vocabulary_url' target='_blank'>taxonomy vocabulary</a>, <a href='@menu_url' target='_blank'>menu</a> and <a href='@user_url' target='_blank'>user</a> pages.)<br/>Custom links can be added on <a href='@config_url' target='_blank'>this configuration page</a>.",array('@sitemap_url'=>"$base_url/sitemap.xml",'@content_type_url'=>"$base_url/admin/structure/types",'@taxonomy_vocabulary_url'=>"$base_url/admin/structure/taxonomy",'@menu_url'=>"$base_url/admin/structure/menu",'@user_url'=>"$base_url/admin/config/people/accounts",'@config_url'=>"$base_url/admin/config/search/simplesitemap/custom")));
drupal_set_message(t("You can now include content into the <a href='@sitemap_url' target='_blank'>XML sitemap</a> by visiting the corresponding entity type edit pages (e.g. <a href='@content_type_url' target='_blank'>node type edit pages</a>) These settings can then be overridden for single entities.<br/> Support for additional entity types and custom links can be added on <a href='@config_url' target='_blank'>the module's configuration pages</a>.",array('@sitemap_url'=>"$base_url/sitemap.xml",'@content_type_url'=>"$base_url/admin/structure/types",'@config_url'=>"$base_url/admin/config/search/simplesitemap")));
}
/**
* Changing the data structure of the module's configuration.
$message=t("You may want to <a href='@url'>regenerate</a> your XML sitemap now.",array('@url'=>$GLOBALS['base_url'].'/admin/config/search/simplesitemap'));
if($sitemap->getSetting('cron_generate')){
$message.='</br>'.t('Otherwise the sitemap will be regenerated on the next cron run.');
}
drupal_set_message($message);
// drupal_set_message($message); // Commented out, as html code is visible.
}
}
...
...
@@ -213,13 +218,11 @@ function simple_sitemap_entity_bundle_delete($entity_type_id, $bundle) {
$this->bundleName=$entity_bundle=='menu_link_content'&&method_exists($form_entity,'getMenuName')?$form_entity->getMenuName():$entity_bundle;// menu fix
$this->entityTypeId=$entity_type_id;
$this->bundleName=$entity_bundle=='menu_link_content'&&method_exists($form_entity,'getMenuName')?$form_entity->getMenuName():$entity_bundle;// Menu fix.
'#markup'=>'<p>'.t('XML sitemap settings will be added only to entity forms of entities enabled here. Disabling an entity on this page will irreversibly delete its sitemap settings.').'</p>',