function context_condition_book::execute in Context 6.3
Same name and namespace in other branches
- 6 plugins/context_condition_book.inc \context_condition_book::execute()
- 7.3 plugins/context_condition_book.inc \context_condition_book::execute()
File
- plugins/
context_condition_book.inc, line 15
Class
- context_condition_book
- Expose book properties as a context condition.
Code
function execute($node, $op) {
if (isset($node->book, $node->book['menu_name'])) {
foreach ($this
->get_contexts($node->book['menu_name']) as $context) {
$this
->condition_met($context, $node->book['menu_name']);
}
}
}