function _datatables_get_path in DataTables 7
Same name and namespace in other branches
- 7.2 datatables.module \_datatables_get_path()
Returns path to datatables library.
2 calls to _datatables_get_path()
- datatables_library in ./
datatables.module - Implements hook_library().
- template_preprocess_datatables_view in ./
datatables.module - Display a view as a DataTable style.
File
- ./
datatables.module, line 406 - Provides integration of the jQuery DataTables plugin
Code
function _datatables_get_path() {
$lib_path = NULL;
if (module_exists('libraries') && file_exists(libraries_get_path('datatables') . '/media/js/jquery.dataTables.js')) {
$lib_path = libraries_get_path('datatables');
}
elseif (file_exists(drupal_get_path('module', 'datatables') . '/dataTables/media/js/jquery.dataTables.js')) {
$lib_path = drupal_get_path('module', 'datatables') . '/dataTables';
}
return $lib_path;
}