see patch & many whitespace (yeahh eclipse)
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | l10n_broken_l10n_community_user.patch | 1.77 KB | tobiasb |
| #6 | l10n_broken_l10n_community_user.patch | 1.92 KB | tobiasb |
| #4 | l10n_broken_l10n_community_user.patch | 2.06 KB | tobiasb |
| #1 | l10n_broken_l10n_community_user.patch | 13.22 KB | tobiasb |
| l10n_broken_l10n_community_user.patch | 13.15 KB | tobiasb |
Comments
Comment #1
tobiasbadd user_access
Comment #2
gábor hojtsyGood catch!
1. $category is still on the D6 API, so not sure why you removed it: http://api.drupal.org/api/function/hook_user/6 Granted, we do not use it, but it is part of the standard signature, so it is common to just include it anyway.
2.
if ($op == 'view' && user_access(...))would have been fine/shorter.3. I'd put in the #type to the $items array, and then just assign that to the contributions item, so we do not need to iterate that again just to add the #type.
4. I'd love to commit the whitespace changes first, so if you can get that one separately (even if on this patch), then it would be easier for others to view what progress is made here.
Comment #3
gábor hojtsyActually, I've committed an all-whitespace cleanup for the module, so I'm hopeful that you can reroll this patch with only the concrete changes. Please do.
Comment #4
tobiasbReroll
Comment #5
gábor hojtsy- Hm, why wouldn't $row->language be set in any cases?
- You seem to add the top level keys to l10n_server_contributions for every row again and again.
As said above, I'd just fill up $items with the FAPI keys and then if (count($items)) { set up the top level l10n_server_contributions item and put $items below that as it is; }.
Comment #6
tobiasbComment #7
tobiasbComment #8
gábor hojtsyThanks, committed!