function context_entity_field_context_registry in Context entity field 7
Implements hook_context_registry().
File
- ./
context_entity_field.module, line 46 - Adds entity field value as context condiction
Code
function context_entity_field_context_registry() {
$registry['conditions'] = array(
'entity_field' => array(
'title' => t('Entity field'),
'description' => t('Set context based on the entity field value'),
'plugin' => 'context_condition_entity_field',
),
'entity_view_mode' => array(
'title' => t('Entity view mode'),
'description' => t('Set context based on the entity view mode'),
'plugin' => 'context_condition_entity_view_mode',
),
);
return $registry;
}