function openid_user_identities

cis7 openid.pages.inc openid_user_identities($account)
cle7 openid.pages.inc openid_user_identities($account)
elmsmedia7 openid.pages.inc openid_user_identities($account)
icor7 openid.pages.inc openid_user_identities($account)
meedjum_blog7 openid.pages.inc openid_user_identities($account)
mooc7 openid.pages.inc openid_user_identities($account)

Menu callback; Manage OpenID identities for the specified user.

1 string reference to 'openid_user_identities'
openid_menu in modules/openid/openid.module
Implements hook_menu().

File

modules/openid/openid.pages.inc, line 29
User page callbacks for the openid module.

Code

function openid_user_identities($account) {
  drupal_set_title(format_username($account));
  drupal_add_css(drupal_get_path('module', 'openid') . '/openid.css');

  // Check to see if we got a response
  $result = openid_complete();
  if ($result['status'] == 'success') {
    $identity = $result['openid.claimed_id'];
    $query = db_insert('authmap')->fields(array(
      'uid' => $account->uid,
      'authname' => $identity,
      'module' => 'openid',
    ))->execute();
    drupal_set_message(t('Successfully added %identity', array('%identity' => $identity)));
  }

  $header = array(t('OpenID'), t('Operations'));
  $rows = array();

  $result = db_query("SELECT * FROM {authmap} WHERE module='openid' AND uid=:uid", array(':uid' => $account->uid));
  foreach ($result as $identity) {
    $rows[] = array(check_plain($identity->authname), l(t('Delete'), 'user/' . $account->uid . '/openid/delete/' . $identity->aid));
  }

  $build['openid_table'] = array(
    '#theme' => 'table',
    '#header' => $header,
    '#rows' => $rows,
    '#empty' => t('No OpenID identities available for this account.'),
  );
  $build['openid_user_add'] = drupal_get_form('openid_user_add');
  return $build;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.