Skip to content

Instantly share code, notes, and snippets.

@shrop
Created February 7, 2012 16:22
Show Gist options
  • Save shrop/1760522 to your computer and use it in GitHub Desktop.
Save shrop/1760522 to your computer and use it in GitHub Desktop.
Disable and uninstall content_access (doesn't seem to work for me)
/**
* Disable and uninstall the content_access module if installed
*/
function splashpad_general_feature_update_6100() {
if (module_exists('content_access')) {
// Disable content_access
module_disable('content_access');
// Uninstall content_access
drupal_uninstall_module('content_access');
// Rebuild node access
node_access_rebuild();
}
return array();
}
@shrop
Copy link
Author

shrop commented Feb 7, 2012

So.. turns out that module_disable() expects an array to be passed. Thanks to @notzach for pointing this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment