You are here

function party_rules_event_info in Party 7

Same name and namespace in other branches
  1. 8.2 party.rules.inc \party_rules_event_info()

Implements hook_rules_event_info()

File

./party.rules.inc, line 23
Rules integration for party.

Code

function party_rules_event_info() {
  return array(
    'party_insert' => array(
      'group' => t('Party'),
      'module' => 'party',
      'label' => t('After saving a new party'),
      'variables' => array(
        'party' => array(
          'type' => 'party',
          'label' => t('created party'),
        ),
      ),
    ),
    'party_update' => array(
      'group' => t('Party'),
      'module' => 'party',
      'label' => t('After updating an existing party'),
      'variables' => array(
        'party' => array(
          'type' => 'party',
          'label' => t('updated party'),
        ),
      ),
    ),
    'party_view' => array(
      'group' => t('Party'),
      'module' => 'party',
      'label' => t('A Party is viewed'),
      'variables' => array(
        'party' => array(
          'type' => 'party',
          'label' => t('viewed party'),
        ),
      ),
      'help' => t("Note that if drupal's page cache is enabled, this event won't be generated for pages served from cache."),
    ),
    'party_delete' => array(
      'group' => t('Party'),
      'module' => 'party',
      'label' => t('After deleting a party'),
      'variables' => array(
        'party' => array(
          'type' => 'party',
          'label' => t('deleted party'),
        ),
      ),
    ),
  );
}