Created
January 11, 2011 17:27
-
-
Save mrchrisadams/774761 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
<?php | |
function my_module_update_6205() { | |
$ret= array(); | |
drupal_uninstall_module('viewsdisplaytabs'); | |
// clear the views cache in case to only serve a fresh views | |
cache_clear_all('*', 'cache_views', true); | |
// clear the other caches largely because drupal's voodoo | |
// when doing the most basic of tasks is making me lose my will to live | |
cache_clear_all(); | |
// make sure our cache table is cleared and rebuilt so that disabled modules | |
module_rebuild_cache(); | |
// return a meaningful array value to see what this update just did | |
$ret[] = array( | |
'success' => true, | |
'query' => 'Disabled viewsdisplaytabs module', | |
); | |
return $ret; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment