The function is completely undocumented.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

agentrickard’s picture

Status: Active » Needs review
FileSize
1.46 KB

And a patch, which also cleans up a verb tense in a nearby function.

aspilicious’s picture

+++ includes/form.inc	26 Jun 2010 16:49:20 -0000
@@ -2042,12 +2042,29 @@ function _form_set_value(&$form_values, 
+ * @param $array
+ *   The form options array to process.
+ * @return
+ *   An array with all hierarchical elements flattened to a single array.

Newline needed between @param and @return

+++ includes/form.inc	26 Jun 2010 16:49:20 -0000
@@ -2042,12 +2042,29 @@ function _form_set_value(&$form_values, 
+ */ ¶

trailing whitespace

+++ includes/form.inc	26 Jun 2010 16:49:20 -0000
@@ -2042,12 +2042,29 @@ function _form_set_value(&$form_values, 
+ * We iterate over multi-key arrays and return a flattened array with
+ * a single key, appropriate for use in HTML select forms.
+ */

You return something why don't we have an @return statement?

46 critical left. Go review some!

agentrickard’s picture

Category: task » bug
FileSize
1.65 KB

Cleans up definition some, with help from BangPound.

Removes trailing whitespace.

@aspilicious The helper function has no return following the style of _form_set_value(). We may need to fix both.

agentrickard’s picture

FileSize
1.65 KB

Forgot the return before @return.

Dries’s picture

Priority: Critical » Normal
Status: Needs review » Fixed

Committed to CVS HEAD.

Status: Fixed » Closed (fixed)
Issue tags: -Documentation

Automatically closed -- issue fixed for 2 weeks with no activity.