You are here

function forena_data_settings in Forena Reports 7.2

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

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/config/content/forena/data/configure/' . $name),
    );
  }
  $output = '<ul class="action-links"><li>' . l('Add data source', 'admin/config/content/forena/data/add') . '</li></ul>';
  $output .= theme_table(array(
    'header' => $headers,
    'rows' => $r_list,
    'attributes' => array(),
    'caption' => '',
    'sticky' => true,
    'colgroups' => array(),
    'empty' => '',
  ));
  return $output;
}