diff --git a/user_relationships_api/README.txt b/user_relationships_api/README.txt index f84c790..ca7665a 100644 --- a/user_relationships_api/README.txt +++ b/user_relationships_api/README.txt @@ -1,4 +1,3 @@ - User Relationships API ------------------ This the API only portion of User Relationships. This is required by all UR plugins and addon @@ -47,3 +46,10 @@ need to see the documentation in that file for a deeper explanaition. approve | After approving a relationship disapprove | When a relationship has been removed (specifically disapproved) remove | When a relationship has been removed + + hook_user_relationships_remove_link_alter($list, $args) + $list | The list of remove links being presented to the user. + $args | An array of the arguments passed to + _user_relationships_ui_actions_between(), as well as $relationships, an + array of relationship objects as returned by user_relationships_load(). + \ No newline at end of file diff --git a/user_relationships_ui/user_relationships_ui.module b/user_relationships_ui/user_relationships_ui.module index 022d6e1..0f4b6f4 100644 --- a/user_relationships_ui/user_relationships_ui.module +++ b/user_relationships_ui/user_relationships_ui.module @@ -270,6 +270,11 @@ function _user_relationships_ui_actions_between(&$viewer, &$viewed, $action_type } } + // Allow other modules to alter the remove links. + $args = func_get_args(); + $args[3] = $relationships; + drupal_alter('user_relationships_remove_link', $list, $args); + return $list; }