function panels_content_user_picture in Panels 6.2
Same name and namespace in other branches
- 5.2 content_types/user_picture.inc \panels_content_user_picture()
1 string reference to 'panels_content_user_picture'
- panels_user_picture_panels_content_types in content_types/
user_picture.inc - Callback function to supply a list of content types.
File
- content_types/
user_picture.inc, line 18
Code
function panels_content_user_picture($subtype, $conf, $panel_args, $context) {
$account = isset($context->data) ? drupal_clone($context->data) : NULL;
$block = new stdClass();
$block->module = 'term-list';
if ($account === FALSE || $account->access == 0 && !user_access('administer users')) {
return drupal_not_found();
}
$block->title = check_plain($account->name);
$block->content = theme('user_picture', $account);
return $block;
}