function og_panels_ct_render_callback_description in Organic groups 6
Same name and namespace in other branches
- 5.8 includes/groupcontent.inc \og_panels_ct_render_callback_description()
- 5 includes/groupcontent.inc \og_panels_ct_render_callback_description()
- 5.3 includes/groupcontent.inc \og_panels_ct_render_callback_description()
- 5.7 includes/groupcontent.inc \og_panels_ct_render_callback_description()
1 string reference to 'og_panels_ct_render_callback_description'
- og_panels_panels_content_types in modules/
og_panels/ og_panels.module - Implementation of hook_panels_content_types()
File
- includes/
og.panelscontent.inc, line 90
Code
function og_panels_ct_render_callback_description($conf, $panel_args, $context) {
$node = isset($context->data) ? drupal_clone($context->data) : NULL;
$block->module = 'og_panels';
$block->subject = t('Description');
if ($node) {
$block->content = check_markup($node->og_description);
$block->delta = $node->nid;
}
else {
$block->content = t('Description goes here.');
$block->delta = 'unknown';
}
return $block;
}