Commit 7dd203c4 authored by Dries's avatar Dries
Browse files

- Patch #528918 by lyaunzbe: document that hook_form_alter() passes by...

- Patch #528918 by lyaunzbe: document that hook_form_alter() passes  by reference. lyaunzbe is a new contributor -- welcome!
parent b09aa24a
...@@ -367,7 +367,7 @@ function hook_page_alter($page) { ...@@ -367,7 +367,7 @@ function hook_page_alter($page) {
* String representing the name of the form itself. Typically this is the * String representing the name of the form itself. Typically this is the
* name of the function that generated the form. * 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) { if (isset($form['type']) && $form['type']['#value'] . '_node_settings' == $form_id) {
$form['workflow']['upload_' . $form['type']['#value']] = array( $form['workflow']['upload_' . $form['type']['#value']] = array(
'#type' => 'radios', '#type' => 'radios',
......
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