function _user_relationships_invoke in User Relationships 6
Same name and namespace in other branches
- 5.3 user_relationships_api/user_relationships_api.module \_user_relationships_invoke()
- 5 user_relationships.module \_user_relationships_invoke()
- 5.2 user_relationships.module \_user_relationships_invoke()
Invoke hook_user_relationships() or hook_user_relationships_type() Just a helper that allows us to pass the relationship or relationship_type object by reference
9 calls to _user_relationships_invoke()
- user_relationships_api_cron in user_relationships_api/
user_relationships_api.module - hook_cron()
- user_relationships_delete_relationship in user_relationships_api/
user_relationships_api.api.inc - Public API for deleting a relationship.
- user_relationships_load in user_relationships_api/
user_relationships_api.api.inc - Load relationship objects from the database.
- user_relationships_save_relationship in user_relationships_api/
user_relationships_api.api.inc - Create or update a user relationship.
- user_relationships_types_load in user_relationships_api/
user_relationships_api.api.inc - Public API for loading the full list of relationship types
File
- user_relationships_api/
user_relationships_api.module, line 27 - User Relationships API. Module shell. @author Jeff Smick (creator) @author Alex Karshakevich (maintainer) http://drupal.org/user/183217
Code
function _user_relationships_invoke($type, &$relationship, $is_type = FALSE) {
$hook = 'user_relationships' . ($is_type ? '_type' : '');
foreach (module_implements($hook) as $module) {
$function = $module . '_' . $hook;
$function($type, $relationship);
}
}