You are here

public function FrxEmailMerge::configForm in Forena Reports 7.4

Returns the section Enter description here ...

Overrides FrxRenderer::configForm

File

renderers/FrxEmailMerge.inc, line 28
FrxEmailMerge Email merge template.

Class

FrxEmailMerge
@file FrxEmailMerge Email merge template.

Code

public function configForm($config) {
  $form_ctl['from'] = array(
    '#type' => 'textfield',
    '#title' => t('From'),
    '#default_value' => @$config['from'],
  );
  $form_ctl['to'] = array(
    '#type' => 'textfield',
    '#title' => t('To'),
    '#default_value' => @$config['to'],
  );
  $form_ctl['cc'] = array(
    '#type' => 'textfield',
    '#title' => t('Cc'),
    '#default_value' => @$config['cc'],
  );
  $form_ctl['bcc'] = array(
    '#type' => 'textfield',
    '#title' => t('Bcc'),
    '#default_value' => @$config['bcc'],
  );
  $form_ctl['subject'] = array(
    '#type' => 'textfield',
    '#title' => t('Subject'),
    '#default_value' => @$config['subject'],
  );
  $form_ctl['body'] = array(
    '#type' => 'text_format',
    '#title' => t('Message'),
    "#format" => $this->email_input_format,
    '#default_value' => @$config['body']['value'],
  );
  return $form_ctl;
}