function og_rules_condition_info in Organic groups 6
Same name and namespace in other branches
- 6.2 includes/og.rules.inc \og_rules_condition_info()
- 7.2 og.rules.inc \og_rules_condition_info()
- 7 og.rules.inc \og_rules_condition_info()
Implementation of hook_rules_condition_info().
File
- includes/
og.rules.inc, line 180 - 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',
),
);
}