function fbconnect_user_identities in Facebook Connect 6.2
Same name and namespace in other branches
- 5 fbconnect.module \fbconnect_user_identities()
- 6 fbconnect.pages.inc \fbconnect_user_identities()
Menu callback fbconnect identities
1 string reference to 'fbconnect_user_identities'
- fbconnect_menu_alter in ./
fbconnect.module - Implements hook_menu_alter().
File
- ./
fbconnect.pages.inc, line 176 - User pages callbacks for the fbconnect module.
Code
function fbconnect_user_identities($account) {
$conf = fbconnect_get_config();
$fbuid = fbconnect_get_fbuid();
$uid = _fbconnect_is_user($fbuid);
drupal_set_title(check_plain($account->name));
if (isset($account->fbuid) && $account->fbuid) {
return drupal_get_form('fbconnect_user_settings_form', $account);
}
elseif ($uid && $account->uid != $uid) {
return theme('fbconnect_user_profile_tab_connected', $account, $conf, $uid);
}
else {
return theme('fbconnect_user_profile_tab_unconnected', $account, $conf, $uid);
}
}