When you go to "administer/configuration/modules/user" and change the "Public registrations:" under "User settings" to "Only site administrators can create new user accounts." it removes the "Create new account" link under the form fields in the "User Login" block.
Would it make sense to also remove the "Request new password" link?
If so, it would just be as simple as moving the "}" in the code after the line that displays the "Request new password" link.
In "modules/user.module":
if (variable_get("user_register", 1)) {
$items[] = l(t("Create new account"), "user/register", array("title" => t("Create a new user account.")));
}
$items[] = l(t("Request new password"), "user/password", array("title" => t("Request new password via e-mail.")));
would become:
if (variable_get("user_register", 1)) {
$items[] = l(t("Create new account"), "user/register", array("title" => t("Create a new user account.")));
$items[] = l(t("Request new password"), "user/password", array("title" => t("Request new password via e-mail.")));
}
I hope this isn't a duplicate post as I couldn't find mention of it anywhere else in the forums.
Cheers