function tablesorter_requirements in Tablesorter 7
Same name and namespace in other branches
- 7.2 tablesorter.install \tablesorter_requirements()
Implements hook_requirements().
File
- ./
tablesorter.install, line 11 - Tablesorter installation functions.
Code
function tablesorter_requirements($phase) {
$requirements = array();
// Ensure translations don't break at install time.
$t = get_t();
if ($phase == 'runtime') {
$js = libraries_load('tablesorter');
$requirements['tablesorter'] = array(
'title' => t('Tablesorter library'),
'value' => t('TableSorter %vs (<a href="@link">configure</a>)', array(
'%vs' => $js['version'],
'@link' => url('admin/config/user-interface/tablesorter'),
)),
'severity' => REQUIREMENT_OK,
);
}
return $requirements;
}