You are here

function openid_connect_login_form in OpenID Connect / OAuth client 7

Form builder: Log in with an external account.

1 string reference to 'openid_connect_login_form'
openid_connect_block_view in ./openid_connect.module
Implements hook_block_view().

File

includes/openid_connect.forms.inc, line 11
Forms for OpenID Connect.

Code

function openid_connect_login_form($form, &$form_state) {
  form_load_include($form_state, 'inc', 'openid_connect', 'includes/openid_connect.forms');
  foreach (openid_connect_get_plugins(TRUE) as $client) {
    $form['openid_connect_client_' . $client['name'] . '_login'] = array(
      '#type' => 'submit',
      '#value' => t('Log in with !client_title', array(
        '!client_title' => $client['title'],
      )),
      '#name' => $client['name'],
    );
  }
  return $form;
}