You are here

function hybridauth_popup_openid_form in HybridAuth Social Login 7

1 string reference to 'hybridauth_popup_openid_form'
hybridauth_popup_openid in ./hybridauth.pages.inc

File

./hybridauth.pages.inc, line 509

Code

function hybridauth_popup_openid_form($form, &$form_state, $provider_id, $overlay = FALSE) {
  $form = array();
  $form['openid_identifier'] = array(
    '#type' => 'textfield',
    '#title' => t('OpenID Identity'),
    '#description' => t('Type your OpenID identity that you want to use.'),
  );
  $form['actions'] = array(
    '#type' => 'actions',
  );
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit'),
  );
  if ($overlay) {

    // TODO: how should we handle this?
  }
  else {
    $form['actions']['cancel'] = array(
      '#type' => 'link',
      '#title' => t('Cancel'),
      '#href' => $_GET['destination'],
    );
  }
  return $form;
}