You are here

function contexturl_init in Context URL 7

Implements hook_init().

File

./contexturl.module, line 44
Implements the necessary hooks for Context URL to work properly.

Code

function contexturl_init() {
  $map = context_condition_map();
  if (!empty($map['url']) && ($plugin = context_get_plugin('condition', 'url'))) {
    $plugin
      ->execute();
  }
}