user_relationships_rules.module in User Relationships 6
Same filename and directory in other branches
File
user_relationships_rules/user_relationships_rules.moduleView source
<?php
/**
* Implementation of hook_user_relationships
* @param $op
* @param $relationship
*/
function user_relationships_rules_user_relationships($op, &$relationship) {
switch ($op) {
case 'request':
case 'approve':
case 'disapprove':
case 'cancel':
case 'remove':
rules_invoke_event('user_relationships_' . $op, user_load($relationship->requester_id), user_load($relationship->requestee_id), $relationship);
break;
}
}
Functions
Name | Description |
---|---|
user_relationships_rules_user_relationships | Implementation of hook_user_relationships |