You are here

function keyword_rules_install in SEO Compliance Checker 6.2

Same name and namespace in other branches
  1. 6 keyword_rules/keyword_rules.install \keyword_rules_install()

Implementation of hook_install().

File

keyword_rules/keyword_rules.install, line 15

Code

function keyword_rules_install() {
  if (module_exists('nodewords')) {
    variable_set('keyword_rules_keywords_driver', 'nodewords');
  }
  else {
    drupal_set_message(t('
      In order to be able to use the Keyword Rules you have to create a CCK field
      for keywords and assign it to the content types that use the SEO Checker.
      Afterwards you should select this field in the ' . l('Keyword Rules settings', 'admin/settings/seo_checker/keyword_rules') . '.'), 'warning');
  }
}