commons_bw_group.inc in Drupal Commons 7.3
File
modules/commons/commons_bw/plugins/content_types/commons_bw_group.inc
View source
<?php
$plugin = array(
'title' => t('Commons Group Browsing widget'),
'description' => t('Commons Group Browsing widget.'),
'category' => t('Commons'),
'single' => TRUE,
'content type' => 'commons_bw_group',
'all contexts' => TRUE,
);
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;
}
function commons_bw_commons_bw_group_content_type_edit_form($form, $form_state) {
return $form;
}
function commons_bw_commons_bw_group_content_type_edit_form_submit($form, $form_state) {
return $form;
}