Commit 74392bcd authored by frjo's avatar frjo
Browse files

Minor fix to hook_form_alter, pass form_state by reference..

parent 1bcd9118
......@@ -316,7 +316,7 @@ function colorbox_get_path() {
* Implements hook_form_alter().
* Reformat the login form.
*/
function colorbox_form_alter(&$form, $form_state, $form_id) {
function colorbox_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == variable_get('colorbox_login_form', '') && arg(0) == 'user' && arg(1) == 'login' && arg(2) == 'colorbox') {
$destination = isset($_GET['destination']) ? urlencode($_GET['destination']) : 'user';
$form['#action'] = url('user/login', array('query' => array('destination' => $destination)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment