You are here

function forena_data_settings_delete in Forena Reports 8

Same name and namespace in other branches
  1. 6.2 forena.admin.inc \forena_data_settings_delete()
  2. 7.5 forena.admin.inc \forena_data_settings_delete()
  3. 7.2 forena.admin.inc \forena_data_settings_delete()
  4. 7.3 forena.admin.inc \forena_data_settings_delete()
  5. 7.4 forena.admin.inc \forena_data_settings_delete()

Delete the function Enter description here ...

_state

Parameters

unknown_type $form:

File

forena_ui/forena.admin.inc, line 501

Code

function forena_data_settings_delete($form, &$form_state) {
  if (!@$form_state['storage]']['locked']) {
    $form_state['redirect'] = 'admin/config/content/forena/data';
    db_delete('forena_repositories')
      ->condition('repository', $form_state['values']['name'], '=')
      ->execute();
  }
}