You are here

function hrules_rules_action_info in Heartbeat 6.4

Implementation of hook_rules_action_info().

File

modules/heartbeat_rules/hrules.rules.inc, line 80
Heartbeat rules definitions.

Code

function hrules_rules_action_info() {
  $info = array(
    // Base action to execute as default user activity logs
    'heartbeat_rules_default_action' => array(
      'label' => t('Logs default activity'),
      'eval input' => array(
        'uid_param',
        'uid_target_param',
        'nid_param',
        'nid_target_param',
        'message_id_param',
        'variables_param',
      ),
      'help' => 'Create a relation between a user and something else(node, user, comment, etc ...).',
      'module' => 'heartbeat',
    ),
    // Simplified action to execute user-to-user activity logs
    'heartbeat_rules_users_action' => array(
      'label' => t('Logs activity to indicate a relation between users'),
      'eval input' => array(
        'uid_param',
        'uid_target_param',
        'message_id_param',
        'variables_param',
      ),
      'help' => 'Create a relation between a user and another user. This is only helpfull for relationships like friends, collegues, ... but not when a user only addresses his content to another user.',
      'module' => 'heartbeat',
    ),
  );
  return $info;
}