function tablesorter_libraries_info in Tablesorter 7
Implements hook_libraries_info().
File
- ./
tablesorter.module, line 33 - Tablesorter.
Code
function tablesorter_libraries_info() {
$libraries['tablesorter'] = array(
'name' => 'Tablesorter',
'vendor url' => 'https://mottie.github.io/tablesorter/docs/index.html',
'download url' => 'https://github.com/Mottie/tablesorter/archive/master.tar.gz',
'version arguments' => array(
'file' => 'js/jquery.tablesorter.combined.js',
'pattern' => '/version : \'([\\d\\.]+)\'/',
'lines' => 40,
),
'files' => array(
'js' => array(
'dist/js/jquery.tablesorter.combined.min.js',
'dist/js/extras/jquery.metadata.min.js',
'dist/js/extras/jquery.tablesorter.pager.min.js',
),
),
);
// Add the theme if one is selected.
$theme = variable_get('tablesorter_theme');
if ($theme) {
$libraries['tablesorter']['files']['css'][] = "css/theme.{$theme}.min.css";
}
return $libraries;
}