From 7511394e3255b92eb14669568e7ec492aeaa333f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 6 Mar 2010 12:43:45 +0000 Subject: - Patch #405832 by jhodgdon, arianek: documentation for hook_forms() was incorrect. --- includes/form.inc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'includes') diff --git a/includes/form.inc b/includes/form.inc index cebdf1546..2acf0b687 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -495,14 +495,9 @@ function drupal_form_submit($form_id, &$form_state) { * using different $form_ids can implement hook_forms(), which maps * different $form_id values to the proper form constructor function. * @param $form_state - * A keyed array containing the current state of the form. - * @param ... - * Any additional arguments needed by the unique form constructor - * function. Generally, these are any arguments passed into the - * drupal_get_form() or drupal_form_submit() functions after the first - * argument. If a module implements hook_forms(), it can examine - * these additional arguments and conditionally return different - * builder functions as well. + * A keyed array containing the current state of the form, including the + * additional arguments to drupal_get_form() or drupal_form_submit() in the + * 'args' component of the array. */ function drupal_retrieve_form($form_id, &$form_state) { $forms = &drupal_static(__FUNCTION__); -- cgit v1.2.3