Skip to content

Instantly share code, notes, and snippets.

@batigolix
Created September 7, 2016 16:07
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/4cf9866ec8473b9690a4f95de765d8de to your computer and use it in GitHub Desktop.
Save batigolix/4cf9866ec8473b9690a4f95de765d8de to your computer and use it in GitHub Desktop.
$contexts = variable_get('context_status', array());
$disable = array('homepage','sitewide','dae_search_empty','webmasters','no_twitter','workbench_moderate_all','go-to-market','newsroom_events','communities_audence_link','digital_champion_newsroom','grand_coalition_pledge','workbench_moderate_all');
foreach($disable as $item) {
$contexts[$item] = TRUE;
}
variable_set('context_status', $contexts);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment