You are here

function oa_users_picture in Open Atrium Core 7.2

Return a user's profile image.

5 calls to oa_users_picture()
oa_core_entity_build_display in includes/oa_core.util.inc
Convert known entities in to a simple array of title and picture.
oa_core_get_user_picture_for_views_fields in ./oa_core.module
Helper function to find the correct image style depending on the field.
oa_teams_entity_build_display in modules/oa_teams/plugins/content_types/oa_teams_members.inc
Convert known entities in to a simple array of title and picture.
oa_users_build_user_details in modules/oa_users/oa_users.module
Provide information for rendering a user.
oa_user_submitted_render in modules/oa_users/plugins/content_types/oa_users_submitted.inc
Run-time rendering of the body of the block (content type) See ctools_plugin_examples for more advanced info

File

./oa_core.module, line 821

Code

function oa_users_picture($account = NULL, $image_style = 'oa_small_thumbnail', $url = FALSE) {
  $pictures = module_invoke_all('oa_users_picture', $account, $image_style, $url);
  return $pictures ? reset($pictures) : NULL;
}