'test'); return $options; } /** * Select forena report to use for renderig */ function options_form(&$form, &$form_state) { $form['report_name'] = array( '#title' => t('Report'), '#description' => t('Name of an existing report used to render fields in this view'), '#type' => 'textfield', '#autocomplete_path' => 'forena/reports/autocomplete', '#default_value' => $this->options['report_name'], '#required' => TRUE, ); } public function render() { // Group the rows according to the grouping instructions, if specified. $output = ''; $sets = $this->render_grouping( $this->view->result, $this->options['grouping'], TRUE ); $filename = $this->options['report_name'] . '.frx'; if (Frx::File()->exists($filename)) { $output = forena_report($this->options['report_name'], $this->rendered_fields, FALSE); } return $output; } }