You are here

function clswitch in Context 5

Returns whether the current l/url call should use context rewriting or not

3 calls to clswitch()
cl in context_prefix/context_prefix.module
Custom l wrapper for links that need to leave all group contexts
context_prefix_goto in context_prefix/context_prefix.module
A wrapper around drupal_goto() that abstracts out the prefix/context setting You provide both a normal drupal path ('node/43') and a context prefix ('dsi') and context_prefix_goto will determine the correct location to use.
context_prefix_url_rewrite in context_prefix/context_prefix.module
Rewrites path with current context and removes context if searching for source path

File

context_prefix/context_prefix.module, line 678

Code

function clswitch($op, $absolute = null) {
  static $drop;
  switch ($op) {
    case 'set':
      $drop = $absolute;
      break;
    case 'get':
      return $drop;
      break;
    case 'reset':
      $drop = null;
      break;
  }
}