You are here

function og_condition_info in Organic groups 5.3

Same name and namespace in other branches
  1. 5.8 og_workflow_ng.inc \og_condition_info()
  2. 5 og_workflow_ng.inc \og_condition_info()

Implementation of hook_condition_info().

File

./og_workflow_ng.inc, line 143
workflow_ng integration for og module.

Code

function og_condition_info() {
  return array(
    'og_workflow_ng_condition_user_in_group' => array(
      '#label' => t('User is group member'),
      '#arguments' => array(
        'user' => array(
          '#entity' => 'user',
          '#label' => t('User'),
        ),
        'group' => array(
          '#entity' => 'node',
          '#label' => t('Group'),
        ),
      ),
      '#description' => t('Evaluates to TRUE if the user is an approved member of the group. If the user is a pending member, this condition will return FALSE.'),
      '#module' => 'OG',
    ),
    'og_workflow_ng_condition_content_is_group' => array(
      '#label' => t('Content is a group'),
      '#arguments' => array(
        'group' => array(
          '#entity' => 'node',
          '#label' => t('Group'),
        ),
      ),
      '#description' => t('Evaluates to TRUE if the content is a group.'),
      '#module' => 'OG',
    ),
  );
  return $info;
}