requester; $requestee = $relationship->requestee; $replacements = array( '@site' => variable_get('site_name', 'Drupal'), '@site_url' => $GLOBALS['base_url'], '@requester_name' => $requester->name, '@requester_link' => theme('user_relationship_user_link', $requester->uid), '@requester_uid' => $requester->uid, '@requester_list_link' => url("relationships/$requester->uid/list", NULL, NULL, TRUE), '@requester_pending_link' => url("relationships/$requester->uid/requests", NULL, NULL, TRUE), '@requestee_name' => $requestee->name, '@requestee_link' => theme('user_relationship_user_link', $requestee->uid), '@requestee_uid' => $requestee->uid, '@requestee_list_link' => url("relationships/$requestee->uid/list", NULL, NULL, TRUE), '@requestee_pending_link' => url("relationships/$requestee->uid/requests", NULL, NULL, TRUE), '@relationship_name' => $relationship->name, '@relationship_plural_name' => $relationship->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_mailer_request_default() { return <<