@@ -27,12 +27,12 @@ function simple_sitemap_requirements($phase) {
$generated_ago=$sitemap->get_generated_ago();
if(!$generated_ago){
$value=t('Not available');
$description=t("The sitemap has not been generated yet. Run cron, or <a href='@generate'>generate</a> the sitemap manually.",array('@generate'=>$GLOBALS['base_url'].'/admin/config/search/simple_sitemap'));
$description=t("The sitemap has not been generated yet. Run cron, or <a href='@generate'>generate</a> the sitemap manually.",array('@generate'=>$GLOBALS['base_url'].'/admin/config/search/simplesitemap'));
$severity=REQUIREMENT_WARNING;
}
else{
$value=t('XML sitemap is available');
$description=t("The <a href='@sitemap'>XML sitemap</a> was generated @ago ago. <a href='@generate'>Regenerate</a>.",array('@ago'=>$generated_ago,'@sitemap'=>$GLOBALS['base_url'].'/sitemap.xml','@generate'=>$GLOBALS['base_url'].'/admin/config/search/simple_sitemap'));
$description=t("The <a href='@sitemap'>XML sitemap</a> was generated @ago ago. <a href='@generate'>Regenerate</a>.",array('@ago'=>$generated_ago,'@sitemap'=>$GLOBALS['base_url'].'/sitemap.xml','@generate'=>$GLOBALS['base_url'].'/admin/config/search/simplesitemap'));
$severity=REQUIREMENT_INFO;
}
$requirements['simple_sitemap_generated']=array(
...
...
@@ -84,6 +84,6 @@ function simple_sitemap_install() {
$sitemap=newSimplesitemap;
$sitemap->generate_sitemap('drush');
$base_url=$GLOBALS['base_url'];
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/simple_sitemap/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'>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")));