function ctools_context_optional::filter in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 includes/context.inc \ctools_context_optional::filter()
Overrides ctools_context_required::filter
File
- includes/
context.inc, line 199 - Contains code related to the ctools system of 'context'.
Class
- ctools_context_optional
- Used to compare to see if a list of contexts match an optional context. This can produce empty contexts to use as placeholders.
Code
function filter($contexts) {
$this
->add_empty($contexts);
return parent::filter($contexts);
}