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).

Comments

chx’s picture

Status: Needs review » Needs work

-1, this is not the way. Use $form['foo'] = something().

moshe weitzman’s picture

Status: Needs work » Needs review
StatusFileSize
new4.69 KB

changed as per chx comment.

chx’s picture

Status: Needs review » Needs work

First, 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.

chx’s picture

Status: Needs work » Needs review
StatusFileSize
new9.67 KB

That's done.

chx’s picture

StatusFileSize
new4.7 KB
chx’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new4.75 KB

Now, I moved the weight into the system_theme_select_form.

Steven’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)