You are here

function og_panels_ct_render_callback_faces in Organic groups 5.7

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

File

includes/groupcontent.inc, line 143

Code

function og_panels_ct_render_callback_faces($conf, $panel_args, $context) {
  $node = isset($context->data) ? drupal_clone($context->data) : NULL;
  $block->module = 'og_panels';
  $block->subject = t('Group Faces');
  if ($node) {
    $block->content = og_list_users_faces_page($node->nid, $conf['column_count'], $conf['row_count'], $conf['pager_id']);
    $block->delta = $node->nid;
  }
  else {
    $block->content = t('Faces go here.');
    $block->delta = 'unknown';
  }
  return $block;
}