this is one of the patches which was part of refactor profile_browse() and cleanup+new small features of profile.module and user.module
I had the time to refactor and to optimize the profile.module
mainlyprofile_browse()list of changes
- at
profile_browse()was a lot of code duplication. reordered this part and put it an own function profile_list_profiles()
side benefit: use this function in a node to integrate a user-list inside your article- removed hardcoded html - this is in
theme_profile_list_profiles()
there was also some inconsistency in it - it is now everywhere the same- now there is a unique css-class for every profile-field at theme_profile_listing() - so you can theme it easily
- now there is an unified way where theme_pager is used (bevore this patch one time it was inside
<div id="profile">the next time it was under<div id="profile">
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | profile_browse.patch | 8.54 KB | Tobias Maier |
| #6 | profile_17.patch | 8.54 KB | Tobias Maier |
| #5 | profile_16.patch | 8.51 KB | Tobias Maier |
| #2 | refactorprofile.module_0.patch | 8.12 KB | Tobias Maier |
| refactorprofile.module.patch | 6.36 KB | Tobias Maier |
Comments
Comment #1
Tobias Maier commentedComment #2
Tobias Maier commentedfalse version...
Beside this I changed a few additional things:
theme_profile_list_profiles()was a little bit ugly, because it wanted to have a result as argument. Now it wants an arrayprofile_admin_overview()- replaced a hardcoded list withtheme('item_list', ...)Comment #3
munga commentedI like this patch a lot...
it will solve all my problems here : http://drupal.org/node/49485
The patch applies to HEAD and it seems working ok...
Comment #4
Tobias Maier commentedthanks,
it would be nice if some more people could review this issue.
I mean who could take a look at the code and try the patch on their testsite...
btw. I did a new patch which replaces hardcoded html with themeable functions in the aggregator.module
Comment #5
Tobias Maier commentedI synced this patch with head again.
I removed this feature
I hope you could review this patch - it is not a big change - and commit it to head, because for me it cleans up a bit of code and I don't want to maintain a fork of drupal 4.7 only because of this small change...
Comment #6
Tobias Maier commentedhere is a new patch
which replaces in line 750 something simmilar to
$field-title .':'witht('%title:', array('%title' => $field->title))I saw this issue the first time as I did a patch together with Zen.
He wrote:
Comment #7
Tobias Maier commentedrerolled to head
Comment #8
Tobias Maier commentedComment #9
chx commentedComment #10
dmitrig01 commentednot even close to applying - sorry
Comment #11
Bèr Kessels commentedMarking it as a bug. This function contains hardcoded HTML. We agreed upon such things being (critical) bugs. Hardcoded HTML is for certain not a feature request but at least a "mistake".
Comment #12
dvessel commentedhttp://drupal.org/node/162134
fixed.
Comment #13
(not verified) commented