Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
system.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
11 Apr 2006 at 22:00 UTC
Updated:
28 Apr 2006 at 20:45 UTC
Jump to comment: Most recent file
system user() includes this undrupalish line: $themes = array_filter(list_themes(), create_function('$theme', 'return $theme->status;'));
I couldn't stomach that so I rewrote it to be more straightforward, I also cleaned up a little cruftiness in the theme selector code and moved that to own function (og.module duplicates same code. maybe more modules too).
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | theme_select_1.patch | 4.75 KB | chx |
| #5 | theme_select_0.patch | 4.7 KB | chx |
| #4 | theme_select.patch | 9.67 KB | chx |
| #2 | theme_selector_0.patch | 4.69 KB | moshe weitzman |
| theme_selector.patch | 4.23 KB | moshe weitzman |
Comments
Comment #1
chx commented-1, this is not the way. Use $form['foo'] = something().
Comment #2
moshe weitzman commentedchanged as per chx comment.
Comment #3
chx commentedFirst, the comment needs change, because the code returns a theme selector and not injects it (because of the change I requested). Second on the user screen this becomes the first group, which I do not like.
Comment #4
chx commentedThat's done.
Comment #5
chx commentedComment #6
chx commentedNow, I moved the weight into the system_theme_select_form.
Comment #7
Steven commentedCommitted to HEAD. Thanks.
Comment #8
(not verified) commented