Skip to content

Instantly share code, notes, and snippets.

@jeroenbourgois
Created February 11, 2011 21:10
Show Gist options
  • Save jeroenbourgois/823034 to your computer and use it in GitHub Desktop.
Save jeroenbourgois/823034 to your computer and use it in GitHub Desktop.
<?php
/*
* Implementation of hook_disable()
* Perform necessary actions before module is disabled. (like clear the drupalconnect:methods cache)
*/
function drupalconnect_disable() {
cache_clear_all('drupalconnect:methods', 'cache');
}
/*
* Implementation of hook_enable()
* Perform necessary actions after module is enabled. (like clear the drupalconnect:methods cache)
*/
function drupalconnect_enable() {
cache_clear_all('drupalconnect:methods', 'cache');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment