diff options
Diffstat (limited to 'modules')
-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; } |