You are here

function og_subgroups_condition_info in Subgroups for Organic groups 5

Same name and namespace in other branches
  1. 5.4 og_subgroups.workflow_ng.inc \og_subgroups_condition_info()

Implementation of hook_condition_info().

File

./og_subgroups.workflow_ng.inc, line 53
og_subgroups.workflow_ng.inc

Code

function og_subgroups_condition_info() {
  $info = array();
  $info['og_subgroups_workflow_ng_condition_has_family'] = array(
    '#label' => t('Group has subgroups family'),
    '#arguments' => array(
      'node' => array(
        '#entity' => 'node',
        '#label' => t('Group that will be checked if it has a subgroup parent'),
      ),
    ),
    '#description' => t('Evaluates to TRUE if the group has a family in the subgroups hierarchy. set the family relation to test (parent, children or syblings).'),
    '#module' => 'OG Subgroups',
  );
  return $info;
}