Skip to content

Instantly share code, notes, and snippets.

@batigolix
Created September 8, 2016 08:48
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 batigolix/b50850d5900f49944161ac1e459775c2 to your computer and use it in GitHub Desktop.
Save batigolix/b50850d5900f49944161ac1e459775c2 to your computer and use it in GitHub Desktop.
/**
* Deletes obsolete contexts.
*/
function mymodule_update_7132() {
$disable = array(
'single_telecom_market_news',
'oi24u_community',
'dae_side_blocks',
);
foreach ($disable as $item) {
$context = context_load($item);
context_delete($context);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment