function theme_context_devel in Context 6
Same name and namespace in other branches
- 5 context_ui/context_ui.module \theme_context_devel()
- 6.2 context_ui/context_ui.module \theme_context_devel()
Takes a retrieved context array and returns a themed out tree representation of that context.
1 theme call to theme_context_devel()
- context_ui_block in context_ui/
context_ui.module - Implementation of hook_block().
File
- context_ui/
context_ui.module, line 255
Code
function theme_context_devel($context) {
drupal_add_css(drupal_get_path("module", "context_ui") . "/context_ui.css");
$output = '';
foreach ($context as $space => $a) {
$output .= "<div class='context-devel-space'>{$space}</div>";
$output .= "<div class='context-devel-tree'>" . theme_context_devel_recurse($a) . "</div>";
}
return $output;
}