You are here

user_relationships_rules.module in User Relationships 6

Same filename and directory in other branches
  1. 7 user_relationships_rules/user_relationships_rules.module

File

user_relationships_rules/user_relationships_rules.module
View 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

Namesort descending Description
user_relationships_rules_user_relationships Implementation of hook_user_relationships