From 7dd203c42402be2174042c1ad56eb73f7a908eb6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 31 Jul 2009 21:21:33 +0000 Subject: - Patch #528918 by lyaunzbe: document that hook_form_alter() passes by reference. lyaunzbe is a new contributor -- welcome! --- modules/system/system.api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/system') diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 685f16ac3..eef1e2fce 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -367,7 +367,7 @@ function hook_page_alter($page) { * String representing the name of the form itself. Typically this is the * name of the function that generated the form. */ -function hook_form_alter(&$form, $form_state, $form_id) { +function hook_form_alter(&$form, &$form_state, $form_id) { if (isset($form['type']) && $form['type']['#value'] . '_node_settings' == $form_id) { $form['workflow']['upload_' . $form['type']['#value']] = array( '#type' => 'radios', -- cgit v1.2.3