You are here

function form_options_flatten in Drupal 4

Same name and namespace in other branches
  1. 5 includes/form.inc \form_options_flatten()
  2. 6 includes/form.inc \form_options_flatten()
  3. 7 includes/form.inc \form_options_flatten()

Related topics

2 calls to form_options_flatten()
node_filter_form_submit in modules/node.module
Process result from node administration filter form.
_form_validate in includes/form.inc

File

includes/form.inc, line 622

Code

function form_options_flatten($array, $reset = TRUE) {
  static $return;
  if ($reset) {
    $return = array();
  }
  foreach ($array as $key => $value) {
    if (is_array($value)) {
      form_options_flatten($value, FALSE);
    }
    else {
      $return[$key] = 1;
    }
  }
  return $return;
}