You are here

function forena_doc_formats_settings in Forena Reports 7

Same name and namespace in other branches
  1. 8 forena_ui/forena.admin.inc \forena_doc_formats_settings()
  2. 6.2 forena.admin.inc \forena_doc_formats_settings()
  3. 6 forena.admin.inc \forena_doc_formats_settings()
  4. 7.5 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 657

Code

function forena_doc_formats_settings() {
  $supported_doctypes = forena_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', $supported_doctypes),
    '#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.'),
  );
  return system_settings_form($form);
}