Last active
December 19, 2015 23:19
-
-
Save jessehs/6034033 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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