function party_hat_rules_action_info in Party 7
Same name and namespace in other branches
- 8.2 modules/party_hat/party_hat.rules.inc \party_hat_rules_action_info()
Provide the action to assign an unassign a hat
File
- modules/
party_hat/ party_hat.rules.inc, line 50 - Rules integration with party hats.
Code
function party_hat_rules_action_info() {
$actions = array(
'party_assign_hat' => array(
'label' => t('Assign a Hat to a Party'),
'group' => t('Party'),
'parameter' => array(
'party' => array(
'type' => 'party',
'label' => t('Party'),
'save' => TRUE,
),
'hat_name' => array(
'type' => 'party_hat_name',
'label' => t('Hat'),
'description' => t('The Hat to Assign'),
),
),
//'access callback' => 'rules_user_integration_access'
'base' => 'party_hat_rules_assign_hat',
),
'party_unassign_hat' => array(
'label' => t('Unassign a Hat from a Party'),
'group' => t('Party'),
'parameter' => array(
'party' => array(
'type' => 'party',
'label' => t('Party'),
'save' => TRUE,
),
'hat_name' => array(
'type' => 'party_hat_name',
'label' => t('Hat'),
'description' => t('The Hat to Unassign'),
),
),
//'access callback' => 'rules_user_integration_access'
'base' => 'party_hat_rules_unassign_hat',
),
);
return $actions;
}