You are here

function og_rules_condition_info in Organic groups 6.2

Same name and namespace in other branches
  1. 6 includes/og.rules.inc \og_rules_condition_info()
  2. 7.2 og.rules.inc \og_rules_condition_info()
  3. 7 og.rules.inc \og_rules_condition_info()

Implementation of hook_rules_condition_info().

File

includes/og.rules.inc, line 233
Rules integration for the og module.

Code

function og_rules_condition_info() {
  return array(
    'og_rules_condition_user_in_group' => array(
      'label' => t('User is group member'),
      'arguments' => array(
        'user' => array(
          'type' => 'user',
          'label' => t('User'),
        ),
        'group' => array(
          'type' => 'node',
          'label' => t('Group'),
        ),
      ),
      'help' => 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' => 'Organic groups',
    ),
    'og_rules_condition_content_is_group' => array(
      'label' => t('Content is a group'),
      'arguments' => array(
        'group' => array(
          'type' => 'node',
          'label' => t('Group'),
        ),
      ),
      'help' => t('Evaluates to TRUE if the content is a group.'),
      'module' => 'Organic groups',
    ),
    'og_rules_condition_content_is_group_post' => array(
      'label' => t('Content is a group post'),
      'arguments' => array(
        'group' => array(
          'type' => 'node',
          'label' => t('Group post'),
        ),
      ),
      'help' => t('Evaluates to TRUE if the content is a group post.'),
      'module' => 'Organic groups',
    ),
  );
}