You are here

function og_activity_rules_event_info in Heartbeat 6.4

Same name and namespace in other branches
  1. 6.3 modules/og_activity/og_activity.rules.inc \og_activity_rules_event_info()

Implementation of hook_rules_event_info().

File

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

Code

function og_activity_rules_event_info() {
  return array(
    'og_become_co_admin' => array(
      'label' => t('User becomes co-owner of a group'),
      'module' => 'og_activity',
      'arguments' => array(
        'node' => array(
          'type' => 'node',
          'label' => t('Group node to become an admin.'),
        ),
        'user' => array(
          'type' => 'user',
          'label' => t('User becoming the co-owner.'),
        ),
      ),
      'redirect' => TRUE,
    ),
  );
}