function user_relationships_rules_rules_event_info in User Relationships 7
Same name and namespace in other branches
- 6 user_relationships_rules/user_relationships_rules.rules.inc \user_relationships_rules_rules_event_info()
Implements hook_rules_event_info().
File
- user_relationships_rules/
user_relationships_rules.rules.inc, line 101 - Rules integration for the system module
Code
function user_relationships_rules_rules_event_info() {
return array(
'user_relationships_request' => array(
'label' => t('A user relationship has been requested'),
'group' => t('Relationships'),
'variables' => array(
'requester' => array(
'type' => 'user',
'label' => t('User who initiated the request'),
),
'requestee' => array(
'type' => 'user',
'label' => t('User whose relationship is requested'),
),
'relationship' => array(
'type' => 'relationship',
'label' => t('The relationship object'),
),
),
),
'user_relationships_cancel' => array(
'label' => t('A user relationship has been cancelled'),
'group' => t('Relationships'),
'variables' => array(
'requester' => array(
'type' => 'user',
'label' => t('User who initiated the request'),
),
'requestee' => array(
'type' => 'user',
'label' => t('User whose relationship is requested'),
),
'relationship' => array(
'type' => 'relationship',
'label' => t('The relationship object'),
),
),
),
'user_relationships_approve' => array(
'label' => t('A user relationship has been approved'),
'group' => t('Relationships'),
'variables' => array(
'requester' => array(
'type' => 'user',
'label' => t('User who initiated the request'),
),
'requestee' => array(
'type' => 'user',
'label' => t('User whose relationship is requested'),
),
'relationship' => array(
'type' => 'relationship',
'label' => t('The relationship object'),
),
),
),
'user_relationships_disapprove' => array(
'label' => t('A user relationship has been disapproved'),
'group' => t('Relationships'),
'arguments' => array(
'requester' => array(
'type' => 'user',
'label' => t('User who initiated the request'),
),
'requestee' => array(
'type' => 'user',
'label' => t('User whose relationship is requested'),
),
'relationship' => array(
'type' => 'relationship',
'label' => t('The relationship object'),
),
),
),
'user_relationships_remove' => array(
'label' => t('A user relationship has been removed'),
'group' => t('Relationships'),
'arguments' => array(
'requester' => array(
'type' => 'user',
'label' => t('User who initiated the request'),
),
'requestee' => array(
'type' => 'user',
'label' => t('User whose relationship is requested'),
),
'relationship' => array(
'type' => 'relationship',
'label' => t('The relationship object'),
),
),
),
);
}