function user_relationships_remove_submit in User Relationships 5
Same name and namespace in other branches
- 5.2 user_relationships_actions.inc \user_relationships_remove_submit()
Remove a relationship
File
- ./
user_relationships_actions.inc, line 203
Code
function user_relationships_remove_submit($form_id, &$form_values) {
global $user;
$relationship = $form_values['relationship'];
user_relationships_delete_relationship($relationship, $user);
drupal_set_message(user_relationships_get_message('removed', array(
'!requester' => $relationship->requester->name,
'!requestee' => $relationship->requestee->name,
'%relationship_name' => $relationship->name,
'%relationship_plural_name' => $relationship->plural_name,
)));
return 'relationships/' . $form_values['viewed_id'];
}