You are here

function relation_rules_event_info in Relation 8

Same name and namespace in other branches
  1. 8.2 relation.rules.inc \relation_rules_event_info()
  2. 7 relation.rules.inc \relation_rules_event_info()

Implements hook_rules_event_info().

File

./relation.rules.inc, line 16
Implements the Rules module API for Relation.

Code

function relation_rules_event_info() {
  return array(
    'relation_update' => array(
      'label' => t('After updating a relation'),
      'group' => t('Relation'),
      'variables' => array(
        'relation' => array(
          'type' => 'relation',
          'label' => t('relation'),
          'description' => t('The relation.'),
        ),
        'relation_unchanged' => array(
          'type' => 'relation',
          'label' => t('unchanged relation'),
          'description' => t('The unchanged relation.'),
          'handler' => 'rules_events_entity_unchanged',
        ),
      ),
    ),
    'relation_delete' => array(
      'label' => t('After deleting a relation'),
      'group' => t('Relation'),
      'variables' => array(
        'relation' => array(
          'type' => 'relation',
          'label' => t('relation'),
        ),
      ),
    ),
  );
}