You are here

function context_prefix_init in Context 5

Implementation of hook_init() Checks for any valid context prefixes in request string and sets the context appropriately

File

context_prefix/context_prefix.module, line 48

Code

function context_prefix_init() {
  static $once;
  if (!$once) {
    _context_prefix_init(CONTEXT_PREFIX_PATH);
    _context_prefix_init(CONTEXT_PREFIX_DOMAIN);
    _context_prefix_init(CONTEXT_PREFIX_PAIR);
    $once = true;
  }
}