function freelinking_requirements in Freelinking 6.3
Implements hook_requirements().
File
- ./
freelinking.install, line 29 - Install, update and uninstall functions for the freelinking module.
Code
function freelinking_requirements($phase) {
$requirements = array();
if ('runtime' == $phase) {
$removed = !file_exists(drupal_get_path('module', 'freelinking') . '/plugins/freelinking_path.inc');
$sevr = $removed ? REQUIREMENT_OK : REQUIREMENT_ERROR;
$t = get_t();
$requirements['freelinking'] = array(
'title' => $t('Freelinking'),
'value' => 'Enabled',
'description' => $t('Please make sure that the file "freelinking_path.inc" is removed from the "plugins" directory.'),
'severity' => $sevr,
);
}
return $requirements;
}