You are here

linkedin_auth.pages.inc in LinkedIn Integration 7

Same filename and directory in other branches
  1. 6 linkedin_auth/linkedin_auth.pages.inc

File

linkedin_auth/linkedin_auth.pages.inc
View source
<?php

/*
 * @file Pages callbacks and form builder functions for Linkedin Profile module
 */

/* Implementation of hook_linkedin_admin_page
 * Add our settings to the main Linkedin settings page
 */

/**
 * @todo Please document this function.
 * @see http://drupal.org/node/1354
 */
function linkedin_auth_linkedin_admin_page() {
  $form = array();
  $form['linkedin_auth'] = array(
    '#description' => t('Let users login using their LinkedIn account once they have tied it to their local account'),
    '#title' => t('LinkedIn authentication'),
    '#type' => 'fieldset',
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $form['linkedin_auth']['linkedin_auth_login_link_on_block'] = array(
    '#type' => 'checkbox',
    '#title' => 'Display LinkedIn login link on login block form',
    '#default_value' => variable_get('linkedin_auth_login_link_on_block', '0'),
  );
  $form['linkedin_auth']['linkedin_auth_login_link_on_page'] = array(
    '#type' => 'checkbox',
    '#title' => 'Display LinkedIn login link on login page form',
    '#default_value' => variable_get('linkedin_auth_login_link_on_page', '0'),
  );
  $form['linkedin_auth']['linkedin_auth_bypass_register_checks'] = array(
    '#type' => 'checkbox',
    '#title' => t('Bypass user mail verification or administrator approval for user registering through LinkedIn'),
    '#default_value' => variable_get('linkedin_auth_bypass_register_checks', 0),
  );
  return $form;
}

Functions

Namesort descending Description
linkedin_auth_linkedin_admin_page @todo Please document this function.