function author_pane_content_type_render in Author Pane 7.2
Output function for the 'author pane' content type.
1 string reference to 'author_pane_content_type_render'
- author_pane.inc in plugins/
content_types/ author_pane.inc
File
- plugins/
content_types/ author_pane.inc, line 27
Code
function author_pane_content_type_render($subtype, $conf, $panel_args, $context) {
$account = isset($context->data) ? clone $context->data : NULL;
$block = new stdClass();
if ($account) {
// Use the Real Name module if installed. Otherwise just the plain,
// unthemed user name for the title since we don't want it linked.
if (module_exists('realname')) {
$block->title = theme('realname', $account, array(
'plain' => TRUE,
));
}
else {
$block->title = check_plain($account->name);
}
$variables = array(
'account' => $account,
'caller' => $conf['caller'],
'picture_preset' => $conf['picture_preset'],
'join_date_type' => $conf['join_date_type'],
);
$block->content = theme('author_pane', $variables);
}
else {
$block->content = t('User information not available');
}
return $block;
}