You are here

function contexturl_context_plugins in Context URL 7

Implements hook_context_plugins().

File

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

Code

function contexturl_context_plugins() {
  $module_path = drupal_get_path('module', 'contexturl');
  $plugins = array();
  $plugins['contexturl_condition_url'] = array(
    'handler' => array(
      'path' => $module_path . '/plugins',
      'file' => 'contexturl_condition_url.inc',
      'class' => 'contexturl_condition_url',
      'parent' => 'context_condition',
    ),
  );
  return $plugins;
}