You are here

function forena_data_settings in Forena Reports 6.2

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

File

./forena.admin.inc, line 1029

Code

function forena_data_settings() {
  $repos = FrxReportGenerator::instance()->app
    ->repositories();
  $r_list = array();
  $headers = array(
    t('Name'),
    t('Description'),
    t('Path'),
    t('Operation'),
  );
  foreach ($repos as $name => $r) {
    $r_list[] = array(
      $name,
      $r['title'],
      $r['path'],
      l('configure', 'admin/settings/forena/data/configure/' . $name),
    );
  }
  $output = '<ul class="action-links"><li>' . l('Add data source', 'admin/settings/forena/data/add') . '</li></ul>';
  $output .= theme_table($headers, $r_list);
  return $output;
}