function context_condition_node::condition_values in Context 7.3
Same name and namespace in other branches
- 6.3 plugins/context_condition_node.inc \context_condition_node::condition_values()
- 6 plugins/context_condition_node.inc \context_condition_node::condition_values()
Condition values.
Overrides context_condition::condition_values
1 method overrides context_condition_node::condition_values()
- context_condition_node_taxonomy::condition_values in plugins/
context_condition_node_taxonomy.inc - Condition values.
File
- plugins/
context_condition_node.inc, line 22
Class
- context_condition_node
- Expose node views/node forms of specific node types as a context condition.
Code
function condition_values() {
$values = array();
foreach (node_type_get_types() as $type) {
$values[$type->type] = check_plain($type->name);
}
return $values;
}