Skip to content

Instantly share code, notes, and snippets.

@jessehs
Last active December 19, 2015 23:19
Show Gist options
  • Save jessehs/6034033 to your computer and use it in GitHub Desktop.
Save jessehs/6034033 to your computer and use it in GitHub Desktop.
/**
* Revert xmlsitemap inclusion settings and regenerate sitemap.
*/
function ase_base_update_7004() {
features_revert(array(
'ase_blog' => array('variable'),
'ase_core' => array('variable'),
'ase_press_release' => array('variable'),
'ase_product' => array('variable'),
'ase_resource' => array('variable'),
'ase_video' => array('variable'),
'ase_webform' => array('variable'),
));
drupal_set_message(t('Reverted features.'));
variable_set('xmlsitemap_regenerate_needed', TRUE);
xmlsitemap_cron();
drupal_set_message(t('XML sitemap rebuilt.'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment