You are here

function og_subgroups_context_context_registry in Subgroups for Organic groups 6

Implementation of hook_context_registry()

File

modules/og_subgroups_context/og_subgroups_context.module, line 56

Code

function og_subgroups_context_context_registry() {
  return array(
    'conditions' => array(
      'og_subgroups_context_condition_node_below_og' => array(
        'title' => t('OG subgroups: below'),
        'description' => t("Set this context when the current group is a child of the selected groups."),
        'plugin' => 'og_subgroups_context_condition_node_below_og',
      ),
      'og_subgroups_context_condition_has_children' => array(
        'title' => t('OG subgroups: children'),
        'description' => t("Set this context based on whether or not the current group has children."),
        'plugin' => 'og_subgroups_context_condition_has_children',
      ),
      'og_subgroups_context_condition_has_siblings' => array(
        'title' => t('OG subgroups: siblings'),
        'description' => t("Set this context based on whether or not the current group has siblings."),
        'plugin' => 'og_subgroups_context_condition_has_siblings',
      ),
      'og_subgroups_context_condition_has_parent' => array(
        'title' => t('OG subgroups: parent'),
        'description' => t("Set this context based on whether or not the current group has a parent."),
        'plugin' => 'og_subgroups_context_condition_has_parent',
      ),
    ),
  );
}