function forena_query_group_filter in Forena Reports 7.3
Group a filter
_state
Parameters
unknown_type $form:
1 string reference to 'forena_query_group_filter'
- _forena_query_filter_ctl in ./
forena_query.inc - Recursively build query form.
File
- ./
forena_query.inc, line 635
Code
function forena_query_group_filter($form, &$form_state) {
$where = $form_state['values']['where'];
_forena_query_clean_values($where, $form['where']);
// Determine containing field of pressed button.
$parents = $form_state['triggering_element']['#parents'];
array_shift($parents);
array_pop($parents);
_forena_query_group_parent_data($where, $parents);
$form_state['storage']['builder']['where'] = $where;
$form_state['rebuild'] = TRUE;
}