function commons_bw_commons_bw_group_content_type_render in Drupal Commons 7.3
Output function for the '[content_type]' content type.
File
- modules/
commons/ commons_bw/ plugins/ content_types/ commons_bw_group.inc, line 19
Code
function commons_bw_commons_bw_group_content_type_render($subtype, $conf, $panel_args, $context) {
$context = array_shift($context);
$node = !empty($context->data) ? $context->data : NULL;
$block = new stdClass();
$block->title = '';
$widget = commons_bw_generate_group_widget($node);
$block->content = drupal_render($widget['content']);
return $block;
}