You are here

function forena_query_delete_block in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 forena_query/forena_query.inc \forena_query_delete_block()
  2. 7.3 forena_query.inc \forena_query_delete_block()
  3. 7.4 forena_query.inc \forena_query_delete_block()
1 string reference to 'forena_query_delete_block'
forena_query_delete_form in ./forena_query.inc

File

./forena_query.inc, line 255

Code

function forena_query_delete_block($form, &$form_state) {
  $block_name = $form_state['values']['block_name'];
  Frx::DataManager()
    ->deleteBlock($block_name);
  $form_state['redirect'] = 'admin/structure/forena/data';
  drupal_set_message(t('Deleted %s', array(
    '%s' => $block_name,
  )));
}