You are here

function forena_doc_formats_settings in Forena Reports 6.2

Same name and namespace in other branches
  1. 8 forena_ui/forena.admin.inc \forena_doc_formats_settings()
  2. 6 forena.admin.inc \forena_doc_formats_settings()
  3. 7.5 forena.admin.inc \forena_doc_formats_settings()
  4. 7 forena.admin.inc \forena_doc_formats_settings()
  5. 7.2 forena.admin.inc \forena_doc_formats_settings()
  6. 7.3 forena.admin.inc \forena_doc_formats_settings()
  7. 7.4 forena.admin.inc \forena_doc_formats_settings()
1 string reference to 'forena_doc_formats_settings'
forena_menu in ./forena.module
Implementation of hook_menu.

File

./forena.admin.inc, line 995

Code

function forena_doc_formats_settings() {
  $supported_doctypes = FrxReportGenerator::instance()
    ->supported_doctypes();
  $form['forena_doc_formats'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Allowed Document Formats'),
    '#default_value' => variable_get('forena_doc_formats', $supported_doctypes),
    '#description' => t('check your desired document format'),
    '#options' => $supported_doctypes,
  );
  $form['forena_doc_defaults'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Default Document Formats'),
    '#default_value' => variable_get('forena_doc_defaults', array()),
    '#description' => t('check your desired document format'),
    '#options' => $supported_doctypes,
  );
  $form['forena_email_override'] = array(
    '#type' => 'checkbox',
    '#title' => 'Run email merges in test mode',
    '#default_value' => variable_get('forena_email_override', FALSE),
    '#description' => t('When this box is checked emails are sent to the currently logged in user.  Useful for testing environments.'),
  );
  $form['forena_mail_input_format'] = filter_form(variable_get('forena_mail_input_format', FILTER_FORMAT_DEFAULT), NULL, array(
    'forena_mail_input_format',
  ));
  $form['forena_mail_input_format']['#title'] = 'Email Input Format';
  return system_settings_form($form);
}