function keyword_rules_requirements in SEO Compliance Checker 6.2
Same name and namespace in other branches
- 6 keyword_rules/keyword_rules.install \keyword_rules_requirements()
File
- keyword_rules/
keyword_rules.install, line 37
Code
function keyword_rules_requirements() {
$requirements = array();
if (variable_get('keyword_rules_keywords_driver', 'cck') == 'cck') {
$t = get_t();
$keywords_field = variable_get('keyword_rules_keywords_field', null);
if (is_null($keywords_field) || !content_fields($keywords_field)) {
$requirements['field'] = array(
'title' => $t('SEO Compliance Checker'),
'description' => $t('The keyword rules module of the SEO Compliance Checker has to be configured properly. In particular, ' . 'you have to choose which CCK field holds the keywords to be checked against. Please visit ' . '<a href="@url">its configuration page</a> to do so.', array(
'@url' => url('admin/settings/seo_checker/keyword_rules'),
)),
'severity' => REQUIREMENT_WARNING,
'value' => $t('CCK Field not set'),
);
}
}
return $requirements;
}