function thickbox_form_alter in Thickbox 6
Same name and namespace in other branches
- 5 thickbox.module \thickbox_form_alter()
Implementation of hook_form_alter(). Reformat the login form.
File
- ./
thickbox.module, line 141 - 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, $form_state, $form_id) {
if ($form_id == 'user_login' && arg(0) == 'user' && arg(1) == 'login' && arg(2) == 'thickbox') {
$form['#action'] = url('user/login', array(
'query' => array(
'destination' => $_GET['destination'],
),
));
$form['name']['#size'] = 25;
$form['pass']['#size'] = 25;
}
}