Finish integrating the move of the user edit/update functions into the user module. The premise is that the plugable user module will provide the update screens if the user backend supports updates.

This commit is contained in:
Tim Almdal
2009-10-15 10:44:25 -07:00
parent 9e833c9443
commit be6765336e
12 changed files with 29 additions and 34 deletions

View File

@@ -77,7 +77,7 @@ class Users_Controller extends Controller {
->matches($group->password);
$group->input("email")->label(t("Email"))->id("g-email")->value($user->email);
$group->input("url")->label(t("URL"))->id("g-url")->value($user->url);
$form->add_rules_from($user);
$form->add_rules_from(user::get_edit_rules());
module::event("user_edit_form", $user, $form);
$group->submit("")->value(t("Save"));