You are here

function ga_login_element_info in Google Authenticator login 7

Implements hook_element_info().

File

./ga_login.module, line 424
Main ga_login module.

Code

function ga_login_element_info() {
  $types['gacode'] = array(
    '#input' => TRUE,
    '#uid' => NULL,
    '#size' => 6,
    '#maxlength' => 6,
    '#autocomplete_path' => FALSE,
    '#process' => array(
      'ajax_process_form',
    ),
    '#element_validate' => array(
      'ga_login_validate_gacode',
    ),
    '#theme' => 'gacode',
    '#theme_wrappers' => array(
      'form_element',
    ),
    '#_new_ga_code' => FALSE,
  );
  return $types;
}