function panels_content_user_picture in Panels 5.2
Same name and namespace in other branches
- 6.2 content_types/user_picture.inc \panels_content_user_picture()
Output function for the 'node' content type. Outputs a node based on the module and delta supplied in the configuration.
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 22
Code
function panels_content_user_picture($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;
}