You are here

function forena_data_settings in Forena Reports 8

Same name and namespace in other branches
  1. 6.2 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()

File

forena_ui/forena.admin.inc, line 414

Code

function forena_data_settings() {
  $repos = Frx::RepoMan()->repositories;
  $r_list = array();
  $headers = array(
    t('Name'),
    t('Description'),
    t('Path'),
    t('Operation'),
  );
  foreach ($repos as $name => $r) {

    // @FIXME Provide a valid URL, generated from a route name, as the second argument to l(). See https://www.drupal.org/node/2346779 for more information.
    // $r_list[] = array(
    //     $name,
    //     $r['title'],
    //     $r['path'],
    //     l(t('configure'), 'admin/config/content/forena/data/configure/' . $name)
    //     );
  }

  // @FIXME Provide a valid URL, generated from a route name, as the second argument to l(). See https://www.drupal.org/node/2346779 for more information.
  // $output = '<ul class="action-links"><li>' . l(t('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;
}