You are here

public function BlockEditor::save in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 src/Editor/BlockEditor.php \Drupal\forena\Editor\BlockEditor::save()

Saves the data block

File

src/Editor/BlockEditor.php, line 82

Class

BlockEditor

Namespace

Drupal\forena\Editor

Code

public function save() {
  Frx::DataManager()
    ->saveBlock($this->block_name, $this->block);
  unset($_SESSION['forena_query_editor'][$this->block_name]);
  drupal_get_messages('warning');
  drupal_set_message(t('Saved Changes'));
  return $this;
}