function theme_fboauth_user_form_connect in Facebook OAuth (FBOAuth) 6
Same name and namespace in other branches
- 7.2 fboauth.module \theme_fboauth_user_form_connect()
- 7 fboauth.module \theme_fboauth_user_form_connect()
Display the Facebook Connect options on a user's profile form.
1 theme call to theme_fboauth_user_form_connect()
- fboauth_form_user_profile_form_alter in ./
fboauth.module - Implements hook_form_FORM_ID_alter().
File
- ./
fboauth.module, line 435
Code
function theme_fboauth_user_form_connect($uid, $fbid) {
if ($fbid) {
$output = t('Your account is connected with Facebook. (<a href="!url">More info</a>)', array(
'!url' => url('user/' . $uid . '/fboauth', array(
'query' => drupal_get_destination(),
)),
));
}
else {
$output = fboauth_action_display('connect', $_GET['q']);
$output .= '<div class="description">' . t('Connect with Facebook to login with your Facebook account instead of a password.') . '</div>';
}
return $output;
}