requester; $requestee = $relationship->requestee; $type = user_relationships_type_load($relationship->rtid); $replacements = array( '@site' => variable_get('site_name', 'Drupal'), '@site_url' => $GLOBALS['base_url'], '@requester_name' => $requester->name, '@requester_link' => theme('user_relationships_user_link', $requester->uid), '@requester_uid' => $requester->uid, '@requester_list_link' => url("user/{$requester->uid}/relationships/list", NULL, NULL, TRUE), '@requester_pending_link' => url("user/{$requester->uid}/relationships/requests", NULL, NULL, TRUE), '@requestee_name' => $requestee->name, '@requestee_link' => theme('user_relationships_user_link', $requestee->uid), '@requestee_uid' => $requestee->uid, '@requestee_list_link' => url("user/{$requestee->uid}/relationships/list", NULL, NULL, TRUE), '@requestee_pending_link' => url("user/{$requestee->uid}/relationships/requests", NULL, NULL, TRUE), '@relationship_name' => $type->name, '@relationship_plural_name' => $type->plural_name, ); if ($deleted_by = $relationship->deleted_by) { $replacements['@deleted_by_name'] = $deleted_by->name; $replacements['@deleted_by_link'] = url("user/{$deleted_by->uid}", NULL, NULL, TRUE); $replacements['@deleted_by_uid'] = $deleted_by->uid; } return $replacements; } /** * Default request relationship message */ function user_relationship_privatemsg_request_default() { return <<