diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-04-26 16:44:25 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-04-26 16:44:25 +0000 |
commit | a4dc8467bbe69ba984be31309f536af74dc64e73 (patch) | |
tree | 1cb3ae9556d3eed0f97d4f5fa5b6898dc9d9ca3b | |
parent | f2cbf55033d0ed891df839d412547d6b28aeb35e (diff) | |
download | brdo-a4dc8467bbe69ba984be31309f536af74dc64e73.tar.gz brdo-a4dc8467bbe69ba984be31309f536af74dc64e73.tar.bz2 |
- Patch #368821 by Senpai, sun, JuliaKM: documentation improvements.
-rw-r--r-- | modules/system/system.api.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 17667959f..25de2d9c3 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -313,10 +313,14 @@ function hook_form_FORM_ID_alter(&$form, &$form_state) { * See node_forms() for an actual example of how multiple forms share a common * building function. * + * @param $form_id + * The unique string identifying the desired form. + * @param $args + * An array containing the original arguments provided to drupal_get_form(). * @return - * An array keyed by form id with callbacks and optional, callback arguments. + * An array keyed by form_id with callbacks and optional, callback arguments. */ -function hook_forms() { +function hook_forms($form_id, $args) { $forms['mymodule_first_form'] = array( 'callback' => 'mymodule_form_builder', 'callback arguments' => array('some parameter'), @@ -324,6 +328,7 @@ function hook_forms() { $forms['mymodule_second_form'] = array( 'callback' => 'mymodule_form_builder', ); + return $forms; } |