You are here

function openid_user_add in Drupal 7

Same name and namespace in other branches
  1. 6 modules/openid/openid.pages.inc \openid_user_add()

Form builder; Add an OpenID identity.

See also

openid_user_add_validate()

Related topics

1 string reference to 'openid_user_add'
openid_user_identities in modules/openid/openid.pages.inc
Menu callback; Manage OpenID identities for the specified user.

File

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

Code

function openid_user_add() {
  $form['openid_identifier'] = array(
    '#type' => 'textfield',
    '#title' => t('OpenID'),
  );
  $form['actions'] = array(
    '#type' => 'actions',
  );
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Add an OpenID'),
  );
  return $form;
}