You are here

function forena_data_settings_delete in Forena Reports 6.2

Same name and namespace in other branches
  1. 8 forena_ui/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:

1 string reference to 'forena_data_settings_delete'
forena_data_settings_edit in ./forena.admin.inc

File

./forena.admin.inc, line 1404

Code

function forena_data_settings_delete($form, &$form_state) {
  if (!@$form_state['storage]']['locked']) {
    db_query("DELETE FROM {forena_repositories} WHERE repository='%s'", $form_state['values']['name']);
    $form_state['redirect'] = 'admin/settings/forena/data';
    unset($form_state['storage']);
  }
}