function theme_commons_profile_friend_autocomplete_item in Drupal Commons 6.2
Render the autocomplete options on the "find a friend" form
1 theme call to theme_commons_profile_friend_autocomplete_item()
- commons_profile_find_friends_autocomplete in modules/
features/ commons_profile/ commons_profile.pages.inc - Autocomplete callback for the "find new friends" form
File
- modules/
features/ commons_profile/ commons_profile.theme.inc, line 33 - Theme callbacks for commons_profile
Code
function theme_commons_profile_friend_autocomplete_item($name, $picture) {
$content = '';
// Determine the picture to user
$picture = $picture ? $picture : variable_get('user_picture_default', '');
// Add the picture
$content .= '<span class="friend-autocomplete-picture">';
$content .= $picture ? theme('imagecache', 'user_picture_meta', $picture) : '';
$content .= '</span>';
// Add the name
$content .= '<span class="friend-autocomplete-name">';
$content .= $name;
$content .= '</span>';
return $content;
}