function fb_connect_theme_username_override in Drupal for Facebook 6.3
Same name and namespace in other branches
- 6.2 fb_connect.module \fb_connect_theme_username_override()
- 7.3 fb_connect.module \fb_connect_theme_username_override()
Our replacement for theme('username', ...)
1 string reference to 'fb_connect_theme_username_override'
- fb_connect_theme_registry_alter in ./
fb_connect.module - Implementation of hook_theme_registry_alter().
File
- ./
fb_connect.module, line 433 - Support for Facebook Connect features
Code
function fb_connect_theme_username_override($object) {
$orig = theme('fb_connect_username_orig', $object);
if ($fbu = fb_get_object_fbu($object)) {
// Theme the username with XFBML, using original username as backup.
return theme('fb_username', $fbu, $object, $orig);
}
else {
return $orig;
}
}