function party_hat_rules_event_info in Party 7
Same name and namespace in other branches
- 8.2 modules/party_hat/party_hat.rules.inc \party_hat_rules_event_info()
Provide Events for assigning and unassigning hats
File
- modules/
party_hat/ party_hat.rules.inc, line 22 - Rules integration with party hats.
Code
function party_hat_rules_event_info() {
$events = array(
'party_hat_assign_hats' => array(
'group' => t('Party'),
'module' => 'party_hat',
'label' => t('After assigning some hats to a party'),
'variables' => array(
'party' => array(
'type' => 'party',
'label' => t('party'),
),
'hats' => array(
'type' => 'list<party_hat_name>',
'label' => t('assigned hats'),
),
),
),
'party_hat_unassign_hats' => array(
'group' => t('Party'),
'module' => 'party_hat',
'label' => t('After unassigning some hats from a party'),
'variables' => array(
'party' => array(
'type' => 'party',
'label' => t('party'),
),
'hats' => array(
'type' => 'list<party_hat_name>',
'label' => t('unassigned hats'),
),
),
),
);
return $events;
}