You are here

function forena_query_delete_block in Forena Reports 7.3

Same name and namespace in other branches
  1. 8 forena_query/forena_query.inc \forena_query_delete_block()
  2. 7.5 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_builder_form in ./forena_query.inc

File

./forena_query.inc, line 380

Code

function forena_query_delete_block($form, &$form_state) {
  $block_name = $form_state['storage']['block_name'];
  Frx::RepoMan()
    ->deleteBlock($block_name);
  $form_state['rebuild'] = FALSE;
  drupal_set_message(t('Deleted %s', array(
    '%s' => $block_name,
  )));
}