You are here

function forena_settings in Forena Reports 7.3

Same name and namespace in other branches
  1. 8 forena_ui/forena.admin.inc \forena_settings()
  2. 6.2 forena.admin.inc \forena_settings()
  3. 6 forena.admin.inc \forena_settings()
  4. 7.5 forena.admin.inc \forena_settings()
  5. 7 forena.admin.inc \forena_settings()
  6. 7.2 forena.admin.inc \forena_settings()
  7. 7.4 forena.admin.inc \forena_settings()

Forena admin settings form

1 string reference to 'forena_settings'
forena_menu in ./forena.module
Implementation of hook_menu.

File

./forena.admin.inc, line 176

Code

function forena_settings() {
  $skins = variable_get('forena_skins', array());
  $report_path = forena_report_path();
  $form['forena_report_repos'] = array(
    '#type' => 'textfield',
    '#title' => t('Report Repository'),
    '#description' => t('Indicate the directory that you want to use for your reports.  In order for you to ' . 'to be able to save reports, this directory should be writable by the web user. Relative' . 'paths should be entered relative to the base path of your drupal installation.'),
    '#default_value' => $report_path,
  );
  $form['forena_last_report_path'] = array(
    '#type' => 'value',
    '#value' => forena_report_path(),
  );
  $form['forena_input_format'] = forena_filter_element(variable_get('forena_input_format', filter_default_format()), 'forena_input_format');
  $form['forena_default_form'] = array(
    '#type' => 'select',
    '#title' => t('Default report skin'),
    '#options' => $skins,
    '#description' => t('Specify the default skin to be used.   New skins can be created by creating .skinfo files in your reports directory.' . ' Skins are basically css and javascript libraries added to your report.'),
    '#default_value' => variable_get('forena_default_form', ''),
  );
  $form = system_settings_form($form);
  $form['#submit'][] = 'forena_settings_submit';
  return $form;
}