colorbox_node.context.inc in Colorbox Node 7.3
Integrates the context module
File
colorbox_node.context.incView source
<?php
/**
* @file
* Integrates the context module
*/
/**
* Expose the colorbox node context condition.
*/
class colorbox_node_context_condition extends context_condition {
/**
* @return array
*/
function condition_values() {
return array(
1 => t('Enable this context.'),
);
}
/**
* @param $op
*/
function execute($op) {
if ($this
->condition_used()) {
foreach ($this
->get_contexts() as $context) {
$this
->condition_met($context);
}
}
}
}
Classes
Name![]() |
Description |
---|---|
colorbox_node_context_condition | Expose the colorbox node context condition. |