You are here

og_activity.rules_defaults.inc in Heartbeat 6.3

Same filename and directory in other branches
  1. 6.4 modules/og_activity/og_activity.rules_defaults.inc

File

modules/og_activity/og_activity.rules_defaults.inc
View source
<?php

// $Id $

/**
 * Implementation of hook_rules_defaults
 *
 * @return configured rules array
 */
function og_activity_rules_defaults() {
  return array(
    'rules' => array(
      'og_activity_rules_1' => array(
        '#type' => 'rule',
        '#set' => 'event_og_become_co_admin',
        '#categories' => array(
          0 => 'og_activity',
        ),
        '#label' => 'User becomes co-admin of a group',
        '#active' => 0,
        '#weight' => '0',
        '#status' => 'custom',
        '#conditions' => array(),
        '#actions' => array(
          0 => array(
            '#weight' => 1,
            '#info' => array(
              'label' => 'Logs user activity for single users',
              'eval input' => array(
                0 => 'uid_param',
                1 => 'uid_target_param',
                2 => 'nid_target_param',
                3 => 'message_id_param',
                4 => 'variables_param',
              ),
              'module' => 'heartbeat',
            ),
            '#name' => 'heartbeat_rules_default_action',
            '#settings' => array(
              'uid_param' => '[user:uid]',
              'uid_target_param' => '0',
              'nid_target_param' => '[node:nid]',
              'message_id_param' => 'og_become_co_admin',
              'variables_param' => '@username=|=[user:user-name-url]-|-@group=|=[node:title-link]-|-',
              '#eval input' => array(
                'token_rules_input_evaluator' => array(
                  'uid_param' => array(
                    0 => 'user',
                  ),
                  'nid_target_param' => array(
                    0 => 'node',
                  ),
                  'variables_param' => array(
                    0 => 'node',
                    1 => 'user',
                  ),
                ),
              ),
            ),
            '#type' => 'action',
          ),
        ),
        '#version' => 6003,
      ),
    ),
  );
}

Functions

Namesort descending Description
og_activity_rules_defaults Implementation of hook_rules_defaults