You are here

public function FrxTemplate::config_form in Forena Reports 7.3

Same name and namespace in other branches
  1. 6.2 templates/FrxTemplate.inc \FrxTemplate::config_form()
  2. 7.2 templates/FrxTemplate.inc \FrxTemplate::config_form()

Returns the section Enter description here ...

2 methods override FrxTemplate::config_form()
FrxEmailMerge::config_form in templates/FrxEmailMerge.inc
Returns the section Enter description here ...
FrxGraphTemplate::config_form in templates/FrxGraphTemplate.inc
Returns the section Enter description here ...

File

templates/FrxTemplate.inc, line 60
FrxTemplate Base Class for all tmeplates. By default simply renders a document with all the possible tokens in it. @author davidmetzler

Class

FrxTemplate
@file FrxTemplate Base Class for all tmeplates. By default simply renders a document with all the possible tokens in it. @author davidmetzler

Code

public function config_form($config, $xml = '') {
  $form_ctl = array();
  $form_ctl['heading'] = array(
    '#type' => 'textfield',
    '#title' => t('Heading'),
    '#default_value' => @$config['heading'],
  );
  $form_ctl['description'] = array(
    '#type' => 'textarea',
    '#title' => t('Description'),
    '#rows' => 2,
    '#default_value' => @$config['description'],
  );
  $form_ctl['include'] = array(
    '#type' => 'textfield',
    '#title' => 'Include Report (graph/image)',
    '#autocomplete_path' => 'forena/reports/autocomplete',
    '#default_value' => @$config['include'],
  );
  return $form_ctl;
}