You are here

function author_pane_content_type_content in Author Pane 5

Output function for the 'author pane' content type.

1 string reference to 'author_pane_content_type_content'
author_pane_author_pane_panels_content_types in panels_content_types/author_pane.inc
Implementation of hook_panels_content_types().

File

panels_content_types/author_pane.inc, line 44
This file provides a panels content type containing the author pane.

Code

function author_pane_content_type_content($conf, $panel_args, $context) {
  $account = isset($context->data) ? drupal_clone($context->data) : NULL;
  $block->module = 'author_pane';
  $block->title = "Author Pane";
  if ($account) {
    $block->content = theme('author_pane', $account, $conf['image_path'], $conf['template_file']);
  }
  else {
    $block->content = "User information not available";
  }
  return $block;
}