You are here

function context_keywords_context_registry in Context Keywords 7

Same name and namespace in other branches
  1. 6 context_keywords.module \context_keywords_context_registry()

Make module compatible with context 3 Implement hook_context_registry().

File

./context_keywords.module, line 40
context_keywords.module Adds referral url keyword conditions to Context

Code

function context_keywords_context_registry() {
  $registry['conditions'] = array(
    'keywords' => array(
      'title' => t('Keywords'),
      'description' => t("Set context based on the keywords from the referring search engine. Put keyword combinations on a separate line. You can use the * character as a wildcard and ~ to exclude one or more keywords. Contexts with <default> will activate if no other contexts with keywords are active.  To test, simply add ?keywords= with a search engine results url or with a series of keywords seperated by a '+' symbol(ex. ?keywords=context+keywords)."),
      'plugin' => 'context_condition_keywords',
    ),
  );
  return $registry;
}