You are here

function theme_fboauth_user_info in Facebook OAuth (FBOAuth) 6

Same name and namespace in other branches
  1. 7.2 includes/fboauth.pages.inc \theme_fboauth_user_info()
  2. 7 includes/fboauth.pages.inc \theme_fboauth_user_info()

Provided themed information about the user's current Facebook connection.

1 theme call to theme_fboauth_user_info()
fboauth_user_form in includes/fboauth.pages.inc
User settings page for Facebook OAuth.

File

includes/fboauth.pages.inc, line 171
Administrative pages and functions for Facebook OAuth module.

Code

function theme_fboauth_user_info($account) {
  $fbid = fboauth_fbid_load($account->uid);
  $output = '';
  if ($fbid !== FALSE) {
    $output .= '<p>' . t('Your account is current connected with Facebook. Currently this site has access to the following information from Facebook.') . '</p>';
    $output .= theme('item_list', array(
      'basic' => t('Your basic information (Name, Gender, Picture, etc.)'),
    ) + fboauth_user_connect_permissions());
    $output .= '<p>' . t('You may disconnect your account from Facebook at any time by using the Deauthorize option below. If deauthorized, you will no longer be able to use Facebook to log into this account and must use a normal password. <strong>If you have not yet set a password, you will not be able to log onto this site</strong>.') . '</p>';
    $output .= fboauth_action_display('deauth');
  }
  else {
    $output .= '<p>' . t('Your account is not currently connected with Facebook. To connect this account to Facebook, click on the link below.') . '</p>';
    $output .= fboauth_action_display('connect');
  }
  return $output;
}