Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
user.module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
2 Jun 2009 at 18:29 UTC
Updated:
17 Jun 2009 at 11:30 UTC
Jump to comment: Most recent file
Current usage:
function hook_user_categories($edit, $account, $category = NULL)
$edit is NULL, $account is new stdClass() and $category obviously makes no sense anyway...
The attached patch removes all that unecessary stuff and adds api documentation for the hook.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | fix_user_categories2.patch | 3.93 KB | berdir |
| fix_user_categories.patch | 3.76 KB | berdir |
Comments
Comment #1
berdirComment #2
chx commentedThis comes from older Drupals that used hook_user op categories. Nice work.
Comment #3
catchfour spaces
Comment #4
berdirUpdated :)
Comment #5
catchBetter.
Comment #6
dries commentedCommitted this to CVS HEAD, but we should have tests for this IMO.
Comment #7
berdirTo test what exactly?
It wasn't broken - it was just unecessary ugly, but worked. And profile.module does use different categories in the tests.
Comment #8
catchPutting back to fixed, if we're missing coverage anywhere it could be added as part of #479220: Finish up tests for Profile module