You are here

function og_activity_rules_condition_info in Heartbeat 6.4

Implementation of hook_rules_event_info().

File

modules/og_activity/og_activity.rules.inc, line 30
Activity integration for organic groups

Code

function og_activity_rules_condition_info() {
  return array(
    'og_rules_condition_admin_in_group' => array(
      'label' => t('User is group admin'),
      '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 the admin of the group.'),
      'module' => 'og_activity',
    ),
  );
}