You are here

function heartbeat_comments_rules_event_info in Heartbeat 6.4

Same name and namespace in other branches
  1. 7 modules/heartbeat_comments/heartbeat_comments.rules.inc \heartbeat_comments_rules_event_info()

Implementation of hook_rules_event_info().

File

modules/heartbeat_comments/heartbeat_comments.rules.inc, line 12

Code

function heartbeat_comments_rules_event_info() {
  return array(
    'heartbeat_comment_post' => array(
      'label' => t('User reacts on a heartbeat message'),
      'module' => 'heartbeat_comments',
      'arguments' => array(
        'user' => array(
          'type' => 'user',
          'label' => t('User who reacts on the acivity.'),
        ),
        'heartbeat_comment' => array(
          'type' => 'heartbeat_comment',
          'label' => t('Comment that has been posted.'),
        ),
        'author' => array(
          'type' => 'user',
          'label' => t('User who is the original author of the activity.'),
        ),
      ),
      'redirect' => TRUE,
    ),
    'heartbeat_related_comment_post' => array(
      'label' => t('User\'s related heartbeat message was commented'),
      'module' => 'heartbeat_comments',
      'arguments' => array(
        'user' => array(
          'type' => 'user',
          'label' => t('User who reacts on the acivity.'),
        ),
        'heartbeat_comment' => array(
          'type' => 'heartbeat_comment',
          'label' => t('Comment that has been posted.'),
        ),
        'author' => array(
          'type' => 'user',
          'label' => t('User who is the original author of the activity.'),
        ),
        'related_user' => array(
          'type' => 'user',
          'label' => t('User that receives status updates for the activity message.'),
        ),
      ),
      'redirect' => TRUE,
    ),
  );
}