You are here

function forena_include_data_tables in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 forena.module \forena_include_data_tables()
  2. 6.2 forena.module \forena_include_data_tables()
  3. 7.2 forena.module \forena_include_data_tables()
  4. 7.3 forena.module \forena_include_data_tables()
  5. 7.4 forena.module \forena_include_data_tables()

Tries to load data tables libary and other libraries that help.

File

./forena.module, line 980

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);
    }
  }
}