You are here

function discussthis_rules_event_info in Discuss This! 6

Implementation of hook_rules_event_info().

File

./discussthis.module, line 197
Associations discussions in forums with specific nodes

Code

function discussthis_rules_event_info() {
  return array(
    'discussthis_discussion_new' => array(
      'label' => t('A new discussion is started'),
      'module' => 'discussthis',
      'arguments' => array(
        'related_node' => array(
          'type' => 'node',
          'label' => t('Related node.'),
        ),
        'comment' => array(
          'type' => 'comment',
          'label' => t('Comment'),
        ),
      ),
    ),
    'discussthis_discussion_update' => array(
      'label' => t('A discussion is updated'),
      'module' => 'discussthis',
      'arguments' => array(
        'related_node' => array(
          'type' => 'node',
          'label' => t('Related node.'),
        ),
        'comment' => array(
          'type' => 'comment',
          'label' => t('Comment'),
        ),
      ),
    ),
  );
}