You are here

function _forena_query_clean_values in Forena Reports 7.3

Recursively clean all submit values from form elements assuming tree = true structure.

Parameters

$values:

5 calls to _forena_query_clean_values()
forena_query_add_filter in ./forena_query.inc
Add another field to the filter.
forena_query_group_filter in ./forena_query.inc
Group a filter
forena_query_remove_filter in ./forena_query.inc
Remove a filter grouping.
forena_query_remove_group in ./forena_query.inc
Remove a grouping.
forena_query_update_builder in ./forena_query.inc

File

./forena_query.inc, line 417

Code

function _forena_query_clean_values(&$values, &$elements) {
  foreach ($elements as $key => $value) {
    if (strpos($key, '#') !== 0) {
      if (@$value['#type'] == 'submit') {
        unset($values[$key]);
      }
      else {
        _forena_query_clean_values($values[$key], $elements[$key]);
      }
    }
  }
}