function _context_node_get_contexts in Context Node 7
Same name and namespace in other branches
- 6 context_node.module \_context_node_get_contexts()
Return a formatted list of all contexts
1 call to _context_node_get_contexts()
- context_node_form_alter in ./
context_node.module - Implements hook_form_alter()
File
- ./
context_node.module, line 101
Code
function _context_node_get_contexts() {
$contexts = context_enabled_contexts();
ksort($contexts);
$con = array();
foreach ($contexts as $context) {
$con[$context->name] = $context->name;
$cons[] = $con;
}
return $con;
}