You are here

function heartbeat_comments_rules_event_info in Heartbeat 7

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

Implements hook_rules_event_info().

File

modules/heartbeat_comments/heartbeat_comments.rules.inc, line 10
Includes any rules integration provided by heartbeat comments.

Code

function heartbeat_comments_rules_event_info() {
  $items = array(
    'heartbeat_comment_create' => array(
      'label' => t('After saving new heartbeat comment'),
      'group' => t('Heartbeat'),
      'variables' => array(
        'user' => array(
          'type' => 'user',
          'label' => t('Heartbeat comment actor'),
        ),
        'heartbeat_comment' => array(
          'type' => 'heartbeat_comment',
          'label' => t('Heartbeat comment'),
        ),
        'actor' => array(
          'type' => 'user',
          'label' => t('Actor of the parent activity'),
        ),
      ),
    ),
  );
  return $items;
}