function panels_content_custom in Panels 6.2
Same name and namespace in other branches
- 5.2 content_types/custom.inc \panels_content_custom()
- 5 content_types/custom.inc \panels_content_custom()
Output function for the 'custom' content type. Outputs a custom based on the module and delta supplied in the configuration.
1 string reference to 'panels_content_custom'
- panels_custom_panels_content_types in content_types/
custom.inc - Callback function to supply a list of content types.
File
- content_types/
custom.inc, line 27
Code
function panels_content_custom($subtype, $conf) {
static $delta = 0;
$block = new stdClass();
$block->module = 'custom';
$block->delta = ++$delta;
$block->subject = filter_xss_admin($conf['title']);
$block->content = check_markup($conf['body'], $conf['format'], FALSE);
return $block;
}