function googlenews_update_7100 in Google News sitemap 7
Fix the googlenews_publication_name variable.
File
- ./
googlenews.install, line 50 - Install, update, and uninstall functions for the GoogleNews module.
Code
function googlenews_update_7100() {
$pub_name = variable_get('googlenews_publication_name', '');
$site_name = variable_get('site_name', 'Drupal');
// If the publication name is the same as the site name, remove it.
if ($pub_name == $site_name) {
variable_del('googlenews_publication_name');
drupal_set_message(t('The GoogleNews publication name will automatically use the site name if nothing else is assigned. As the publication name was the same as the site name it has been blanked out.'));
}
}