Closed (fixed)
Project:
Drupal core
Version:
4.7.4
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Aug 2006 at 14:03 UTC
Updated:
9 Nov 2006 at 07:15 UTC
In the user.module implementation of hook_user (user_user) there is the code:
if ($type == 'submit' && $category == 'account') {
return _user_edit_submit(arg(1), $edit);
}
But according to the documentation http://api.drupal.org/api/4.7/function/hook_user $type cannot be "submit". Should that case be removed? Or should the documentation be updated? Or is this something else...?
Comments
Comment #1
ax commentednot unused code, but documentation that hasn't been updated. the relevant patch is here.
Comment #2
magico commentedWhere is the "core.php" file to change this documentation?
I need just to had the following:
"submit": Modify the account before it gets saved.Comment #3
edmund.kwok commentedCommitted an update to core.php, http://drupal.org/cvs?commit=43817. Would take a while before the documentation are updated. Until then, considering this fixed, thanks.
Comment #4
(not verified) commented