You are here

function og_panels_ct_render_callback_subscribers in Organic groups 5

Same name and namespace in other branches
  1. 5.8 includes/groupcontent.inc \og_panels_ct_render_callback_subscribers()
  2. 5.3 includes/groupcontent.inc \og_panels_ct_render_callback_subscribers()
  3. 5.7 includes/groupcontent.inc \og_panels_ct_render_callback_subscribers()
  4. 6 includes/og.panelscontent.inc \og_panels_ct_render_callback_subscribers()
1 string reference to 'og_panels_ct_render_callback_subscribers'
og_panels_panels_content_types in ./og_panels.module
Implementation of hook_panels_content_types()

File

includes/groupcontent.inc, line 107

Code

function og_panels_ct_render_callback_subscribers($conf, $panel_args, $context) {
  $node = isset($context->data) ? drupal_clone($context->data) : NULL;
  $block->module = 'og_panels';
  $block->subject = t('Group Members');
  if ($node) {
    $block->content = og_block_subscribers_list($node->nid, $conf['num_items'], $conf['og_panels_subscribers_is_admin'], $conf['show_more'], $conf['show_picture']);
    $block->delta = $node->nid;
  }
  else {
    $block->content = t('Member list goes here.');
    $block->delta = 'unknown';
  }
  return $block;
}