function forena_doc_formats_settings in Forena Reports 7.5
Same name and namespace in other branches
- 8 forena_ui/forena.admin.inc \forena_doc_formats_settings()
- 6.2 forena.admin.inc \forena_doc_formats_settings()
- 6 forena.admin.inc \forena_doc_formats_settings()
- 7 forena.admin.inc \forena_doc_formats_settings()
- 7.2 forena.admin.inc \forena_doc_formats_settings()
- 7.3 forena.admin.inc \forena_doc_formats_settings()
- 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 394
Code
function forena_doc_formats_settings() {
// Invoke doc_type hook to see which document types are there.
$supported_doctypes = Frx::documentTypes();
$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_email_input_format'] = forena_filter_element(variable_get('forena_email_input_format', 'full_text'), 'forena_email_input_format');
$form['forena_email_input_format']['#title'] = t('Email Input Format');
return system_settings_form($form);
}