function party_user_rules_action_info in Party 7
Implements hook_rules_action_info()
File
- modules/
party_user/ party_user.rules.inc, line 10 - Rules integration for party user.
Code
function party_user_rules_action_info() {
$items['party_user_get_party'] = array(
'label' => t('Get a party from a user'),
'group' => t('Party'),
'parameter' => array(
'user' => array(
'type' => 'user',
'label' => t('User'),
'save' => FALSE,
'optional' => TRUE,
),
),
'provides' => array(
'party' => array(
'type' => 'party',
'label' => t('Party'),
'save' => FALSE,
),
),
'base' => 'party_user_rules_get_party',
);
return $items;
}