function config_pages_render in Config Pages 7
Theme specified config.
Since config is just an entity it can be themed.
1 call to config_pages_render()
- config_pages_content_content_type_render in plugins/
content_types/ content/ content.inc - Render the Config Page content.
File
- ./
config_pages.inc, line 127 - Logic functions.
Code
function config_pages_render($type, $context = NULL, $view_mode = 'full', $render = TRUE) {
// Load config.
if ($context === NULL) {
$context = config_pages_context_get($type);
}
$config = config_pages_load_entity($type, $context);
if (empty($config)) {
return '';
}
// Build entity content.
$content = entity_view('config_pages', array(
$config,
), $view_mode);
// Return result.
return !empty($render) ? drupal_render($content) : $content;
}