You are here

function context_og_context_registry in Context OG 7.2

Same name and namespace in other branches
  1. 6.3 context_og.module \context_og_context_registry()
  2. 7 context_og.module \context_og_context_registry()

Implementation of hook_context_registry().

File

./context_og.module, line 57

Code

function context_og_context_registry() {
  return array(
    'conditions' => array(
      'context_og_condition_group_node' => array(
        'title' => t('OG - group node context'),
        'description' => t("Set this context when viewing a node or other page that is in any of the selected groups."),
        'plugin' => 'context_og_condition_group_node',
      ),
      'context_og_condition_group_type' => array(
        'title' => t('OG - group type context'),
        'description' => t("Set this context when viewing a node or other page that is in any group of the selected types.  Select <em>Not in a group</em> to also set the context when viewing a node or other page that is not in any group."),
        'plugin' => 'context_og_condition_group_type',
      ),
      'context_og_condition_member_status' => array(
        'title' => t('OG - Member Status'),
        'description' => t("Set this context based on the current user's OG membership status."),
        'plugin' => 'context_og_condition_member_status',
      ),
      'context_og_condition_member_role' => array(
        'title' => t('OG - Member Role'),
        'description' => t("Set this context based on the current user's OG Role. Note that this currently only supports global non-overridden roles."),
        'plugin' => 'context_og_condition_member_role',
      ),
    ),
    'reactions' => array(
      'context_og_reaction_set_group_context' => array(
        'title' => t('OG - set group context'),
        'description' => t("Set this group's context."),
        'plugin' => 'context_og_reaction_set_group_context',
      ),
    ),
  );
}