function forena_query_update_builder in Forena Reports 7.3
1 call to forena_query_update_builder()
- forena_query_update in ./
forena_query.inc - Function to allow all normal button submits to be for the form.
1 string reference to 'forena_query_update_builder'
File
- ./
forena_query.inc, line 507
Code
function forena_query_update_builder($form, &$form_state) {
$form_state['rebuild'] = TRUE;
$values = $form_state['values'];
_forena_query_clean_values($values['where'], $form['where']);
$form_state['storage']['builder']['where'] = $values['where'];
$provider = $form_state['storage']['provider'];
$sql = Frx::RepoMan()
->buildSQL($provider, $form_state['storage']['builder']);
$form_state['storage']['block']['file'] = $sql;
$form_state['storage']['block']['builder'] = $form_state['storage']['builder'];
}