Created
February 7, 2012 16:22
-
-
Save shrop/1760522 to your computer and use it in GitHub Desktop.
Disable and uninstall content_access (doesn't seem to work for me)
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
/** | |
* 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(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So.. turns out that module_disable() expects an array to be passed. Thanks to @notzach for pointing this out!