function fbconnect_user_identities in Facebook Connect 6
Same name and namespace in other branches
- 5 fbconnect.module \fbconnect_user_identities()
- 6.2 fbconnect.pages.inc \fbconnect_user_identities()
Menu callback fbconnect identities
1 string reference to 'fbconnect_user_identities'
- fbconnect_menu in ./
fbconnect.module - Implementation of hook_menu().
File
- ./
fbconnect.pages.inc, line 138
Code
function fbconnect_user_identities($account) {
$conf = fbconnect_get_config();
$fbuid = fbconnect_get_fbuid();
$uid = _is_fbconnect_user($fbuid);
drupal_set_title(check_plain($account->name));
if ($account->fbuid) {
return drupal_get_form('fbconnect_user_settings_form', $account);
}
elseif ($uid && $account->uid != $uid) {
$message = t("Your current Facebook session is associated to another account on our site.\n" . "You can logout of facebook and attempt to associate another Facebook account to your " . "!site_name account, or you need to disconnect the current association.", array(
'!site_name' => $conf['invite_name'],
));
return '<div>' . $message . '</div>';
}
else {
return '<div>' . t('Click here to connect your Facebook account') . '</div><div class="fbconnect-button">' . fbconnect_render_button() . '</div>';
}
}