function panels_ct_get_content in Panels 6.2
Same name and namespace in other branches
- 5.2 includes/plugins.inc \panels_ct_get_content()
Get the content from a given content type.
Parameters
$type: The content type. May be the name or an already loaded content type object.
$conf: The configuration for the content type.
$args: The arguments to the content type.
$context: The panels_context object.
$incoming_content: Any incoming content, if this display is a wrapper.
Related topics
1 call to panels_ct_get_content()
- panels_get_pane_content in includes/
plugins.inc - Get the content from a given pane.
File
- includes/
plugins.inc, line 226 - plugins.inc
Code
function panels_ct_get_content($type, $subtype, $conf, $args, $context, $incoming_content) {
if ($function = panels_plugin_get_function('content_types', $type, 'render callback')) {
$content = $function($subtype, $conf, $args, $context, $incoming_content);
if (empty($content->title) && !empty($content->subject)) {
$content->title = $content->subject;
}
if (!empty($content->title) && empty($content->subject)) {
$content->subject = $content->title;
}
return $content;
}
}