function context_field_context_condition::execute in Context Field 7
File
- plugins/
context_field_context_condition.inc, line 49 - context_field_context_condition.inc
Class
- context_field_context_condition
- Expose node views/node forms of specific node types as a context condition.
Code
function execute($context_name) {
//If the context exist lets met its context_field condition
$contexts = $this
->get_contexts();
if ($context = isset($contexts[$context_name]) ? $contexts[$context_name] : FALSE) {
$this
->condition_met($context, 'context_field');
}
}