function nodewords_requirements in Nodewords: D6 Meta Tags 6.2
Same name and namespace in other branches
- 6.3 nodewords.install \nodewords_requirements()
- 6 nodewords.install \nodewords_requirements()
Implements hook_requirements().
File
- ./
nodewords.install, line 11 - Install, update and uninstall functions for the Nodewords module.
Code
function nodewords_requirements($phase) {
$requirements = array();
if ($phase == 'runtime') {
drupal_load('module', 'nodewords');
if (!count(nodewords_get_possible_tags())) {
if (!count(module_implements('nodewords_tags_info'))) {
$requirements['nodewords'] = array(
'title' => t('Nodewords'),
'description' => t('There are no modules that implement meta tags.'),
'severity' => REQUIREMENT_ERROR,
'value' => t('Enable at least a module listed under the category <em>Meta tags</em> in <a href="@modules-page">modules page</a>', array(
'@modules-page' => url('admin/build/modules'),
)),
);
}
else {
$requirements['nodewords'] = array(
'title' => t('Nodewords'),
'description' => t('There are no modules that support the current API version.'),
'severity' => REQUIREMENT_ERROR,
'value' => t('There should be at least one module that supports the current API version. Verify you correctly copied the files in the server.'),
);
}
}
}
return $requirements;
}