You are here

function context_entity_field_context_plugins in Context entity field 7

Implements hook_context_plugins().

File

./context_entity_field.module, line 20
Adds entity field value as context condiction

Code

function context_entity_field_context_plugins() {
  $plugins = array();
  $plugins['context_condition_entity_field'] = array(
    'handler' => array(
      'path' => drupal_get_path('module', 'context_entity_field') . '/plugins',
      'file' => 'context_condition_entity_field.inc',
      'class' => 'context_condition_entity_field',
      'parent' => 'context_condition',
    ),
  );
  $plugins['context_condition_entity_view_mode'] = array(
    'handler' => array(
      'path' => drupal_get_path('module', 'context_entity_field') . '/plugins',
      'file' => 'context_condition_entity_view_mode.inc',
      'class' => 'context_condition_entity_view_mode',
      'parent' => 'context_condition',
    ),
  );
  return $plugins;
}