function forena_include_data_tables in Forena Reports 6.2
Same name and namespace in other branches
- 8 forena.module \forena_include_data_tables()
- 7.5 forena.module \forena_include_data_tables()
- 7.2 forena.module \forena_include_data_tables()
- 7.3 forena.module \forena_include_data_tables()
- 7.4 forena.module \forena_include_data_tables()
Include javascript files for dataTables
1 call to forena_include_data_tables()
- forena_report in ./
forena.module - Load and render a report based on a drupal path. In this function the arglist is used to get the full path to the report.
File
- ./
forena.module, line 550
Code
function forena_include_data_tables() {
static $init = FALSE;
if (!$init) {
$init = TRUE;
$lib = 'sites/all/libraries/dataTables/media/js/jquery.dataTables.min.js';
if (file_exists($lib)) {
drupal_add_js($lib);
}
$lib = 'sites/all/libraries/FixedColumns/media/js/FixedColumns.min.js';
if (file_exists($lib)) {
drupal_add_js($lib);
}
}
}