Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created January 11, 2011 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrchrisadams/774761 to your computer and use it in GitHub Desktop.
Save mrchrisadams/774761 to your computer and use it in GitHub Desktop.
<?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