function forena_data_settings in Forena Reports 7.5
Same name and namespace in other branches
- 8 forena_ui/forena.admin.inc \forena_data_settings()
- 6.2 forena.admin.inc \forena_data_settings()
- 7.2 forena.admin.inc \forena_data_settings()
- 7.3 forena.admin.inc \forena_data_settings()
- 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 429
Code
function forena_data_settings() {
$repos = Frx::DataManager()->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(t('configure'), 'admin/config/content/forena/data/configure/' . $name),
);
}
$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;
}