You are here

function defaultcontent_context_plugins in Default Content 7.2

Same name and namespace in other branches
  1. 7 defaultcontent.module \defaultcontent_context_plugins()

Implements hook_context_plugins().

Provide a condition based on the machine name.

File

./defaultcontent.module, line 474
Module file for the Default content module which allow export and import of default content in a Drupal site.

Code

function defaultcontent_context_plugins() {
  $plugins = array();
  $plugins['defaultcontent_condition'] = array(
    'handler' => array(
      'path' => drupal_get_path('module', 'defaultcontent') . '/context/plugins',
      'file' => 'defaultcontent_condition.inc',
      'class' => 'defaultcontent_condition',
      'parent' => 'context_condition',
    ),
  );
  return $plugins;
}