You are here

function masquerade_context_enable in Masquerade Extras 7

Same name and namespace in other branches
  1. 6.2 masquerade_context/masquerade_context.install \masquerade_context_enable()
  2. 7.2 masquerade_context/masquerade_context.install \masquerade_context_enable()

Implements hook_enable().

See also

hook_enable()

1 call to masquerade_context_enable()
masquerade_context_disable in masquerade_context/masquerade_context.install
Implements hook_disable().

File

masquerade_context/masquerade_context.install, line 12
Installation tasks for masquerade_context.

Code

function masquerade_context_enable() {

  // @todo: This cache clearing approach is pretty wonky.
  //  What is the right way to ensure these plugins are instantly available?
  context_invalidate_cache();
  context_conditions(TRUE);
  cache_clear_all('*', 'cache', TRUE);
  cache_clear_all('*', 'cache_bootstrap', TRUE);
}