You are here

function _user_relationships_invoke in User Relationships 5

Same name and namespace in other branches
  1. 5.3 user_relationships_api/user_relationships_api.module \_user_relationships_invoke()
  2. 5.2 user_relationships.module \_user_relationships_invoke()
  3. 6 user_relationships_api/user_relationships_api.module \_user_relationships_invoke()

Invoke hook_user_relationships()

7 calls to _user_relationships_invoke()
user_relationships_delete_relationship in ./user_relationships_api.inc
Public API for deleting a relationship.
user_relationships_relationship_load in ./user_relationships_api.inc
Public API for loading a relationship.
user_relationships_relationship_types_load in ./user_relationships_api.inc
Public API for loading the full list of relationship types
user_relationships_request_relationship in ./user_relationships_api.inc
Public API for creating a relationship.
user_relationships_type_delete_submit in ./user_relationships_actions.inc
Process relationship delete form submission.

... See full list

File

./user_relationships.module, line 20

Code

function _user_relationships_invoke($type, &$relationship, $category = NULL) {
  foreach (module_list() as $module) {
    $function = $module . '_user_relationships';
    if (function_exists($function)) {
      $function($type, $relationship, $category);
    }
  }
}