'description'=>t("In order to be able to generate sitemaps, the Simple XML sitemap module requires the <em>xmlwriter</em> PHP extension to be enabled."),
$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/simplesitemap'));
'#title'=>t('Rebuild sitemap after hitting Save'),
'#description'=>t('This setting will rebuild the whole sitemap including the above changes.<br/>Otherwise the sitemap will be rebuilt on next cron run.'),
'#title'=>t('Regenerate sitemap after hitting Save'),
'#description'=>t('This setting will regenerate the whole sitemap including the above changes.<br/>Otherwise the sitemap will be rebuilt on next cron run.'),
'#default_value'=>FALSE,
);
...
...
@@ -118,7 +118,7 @@ function simplesitemap_entity_form_submit($form, &$form_state) {
}
// Regenerate sitemaps according to user setting.
if($values['simplesitemap_rebuild_now']){
if($values['simplesitemap_regenerate_now']){
$sitemap->generate_sitemap();
}
}
...
...
@@ -147,7 +147,7 @@ function simplesitemap_entity_bundle_delete($entity_type_id, $bundle) {
@@ -60,10 +60,10 @@ class SimplesitemapCustomLinksForm extends ConfigFormBase {
'#description'=>t("Please specify drupal internal (relative) paths, one per line. Do not forget to prepend the paths with a '/' You can optionally add a priority (0.0 - 1.0) by appending it to the path after a space. The home page with the highest priority would be <em>/ 1</em>, the contact page with a medium priority would be <em>/contact 0.5</em>."),
'#title'=>t('Rebuild sitemap after hitting Save'),
'#description'=>t('This setting will rebuild the whole sitemap including the above changes.<br/>Otherwise the sitemap will be rebuilt on next cron run.'),
'#title'=>t('Regenerate sitemap after hitting Save'),
'#description'=>t('This setting will regenerate the whole sitemap including the above changes.<br/>Otherwise the sitemap will be rebuilt on next cron run.'),
'#default_value'=>FALSE,
);
...
...
@@ -117,7 +117,7 @@ class SimplesitemapCustomLinksForm extends ConfigFormBase {