function forena_include_data_tables in Forena Reports 7.4
Same name and namespace in other branches
- 8 forena.module \forena_include_data_tables()
- 6.2 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()
Tries to load data tables libary and other libraries that help.
File
- ./
forena.module, line 998
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);
}
$lib = 'sites/all/libraries/FixedHeader/js/FixedHeader.min.js';
if (file_exists($lib)) {
drupal_add_js($lib);
}
}
}