function forena_query_editor_update in Forena Reports 7.4
Same name and namespace in other branches
- 8 forena_query/forena_query.inc \forena_query_editor_update()
- 7.5 forena_query.inc \forena_query_editor_update()
Function to allow all normal button submits to be for the form.
_state
Parameters
unknown_type $form:
1 string reference to 'forena_query_editor_update'
- forena_query_editor in ./
forena_query.inc - Basic SQL Editor form hook implementation
File
- ./
forena_query.inc, line 275
Code
function forena_query_editor_update($form, &$form_state) {
// Instantiate form values
$form_state['values']['config']['access'] = $form_state['values']['access'];
$o = Frx::BlockEditor($form_state['storage']['block_name']);
$config = array_merge($form_state['storage']['block'], $form_state['values']['config']);
Frx::BlockEditor()
->update($config);
$form_state['rebuild'] = TRUE;
}