function forena_library_file in Forena Reports 7.4
Same name and namespace in other branches
- 8 forena.module \forena_library_file()
- 7.5 forena.module \forena_library_file()
7 calls to forena_library_file()
- forena_data_preview in ./
forena.data.inc - forena_forena_controls in ./
forena.module - Self register controls with forena.
- forena_pdf_configure in ./
forena_pdf.module - Implementation of configuration form.
- forena_requirements in ./
forena.module - FrxPrincePDF::__construct in docformats/
FrxPrincePDF.inc
File
- ./
forena.module, line 439
Code
function forena_library_file($library) {
$libraries = array(
'dataTables' => 'dataTables/media/js/jquery.dataTables.min.js',
'mpdf' => 'mpdf/mpdf.php',
'SVGGraph' => 'SVGGraph/SVGGraph.php',
'prince' => 'prince/prince.php',
);
$path = isset($libraries[$library]) && file_exists('sites/all/libraries/' . $libraries[$library]) ? 'sites/all/libraries/' . $libraries[$library] : '';
return $path;
}