You are here

function thickbox_form_alter in Thickbox 5

Same name and namespace in other branches
  1. 6 thickbox.module \thickbox_form_alter()

Implementation of hook_form_alter(). Reformat the login form.

File

./thickbox.module, line 168
Author: Fredrik Jonsson fredrik at combonet dot se The thickbox module is a simple wrapper for the jquery plugin ThickBox http://jquery.com/demo/thickbox/.

Code

function thickbox_form_alter($form_id, &$form) {
  if ($form_id == 'user_login' && arg(0) == 'thickbox_login') {
    $form['#action'] = url('user/login', 'destination=' . $_GET['destination']);
    $form['name']['#size'] = 25;
    $form['pass']['#size'] = 25;
  }
}