When there are multiple themes enabled on a site, the 'Theme configuration' fieldset in the user's account edit page displays the enabled themes' .info file names and paths rather than the actual theme names and descriptions contained in the .info files.
I've attached a patch to fix this but I've never rolled or submitted a patch before so I apologize if it needs tweaking.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | Picture 2.png | 48.24 KB | akahn |
| #1 | system_theme_select_form_new.patch | 1.05 KB | james marks |
| system_theme_select_form.patch | 1.05 KB | james marks |
Comments
Comment #1
james marks commentedResubmitting the patch and changing the status of the issue. (Ran the patch change in the wrong direction the first time.)
In the system.module file in the system_theme_select function, the patch specifically changes this:
#title' => $info->name, '#markup' => dirname($info->filename)
to this:
#title' => $info->info['name'], '#markup' => $info->info['description']
to correctly display the theme name and description.
Comment #2
akahn commentedI like this patch and it seems to work fairly well. But look what happens when one of the themes has a long description (see attached image). It makes a very wide page.
I think the text needs to wrap and should probably have similar styling (or at least markup) to admin/build/theme. But I'm not sure that is within the scope of this issue.
Comment #3
james marks commentedI didn't address the issue of the text wrapping because I felt, also, that it wasn't in the scope of this particular issue.
Comment #4
webchickWell. I think the purpose of this issue is to make the table here match a lot more closely the table under admin/build/themes. And that means we should add some table wrapping here like that table has as well.
Also, subscribe.
Comment #5
james marks commentedUnderstood. I'll get on that. Thanks!
Comment #6
webchickIncidentally, it might be possible for us to just re-use the same theme function here. If so, that'd be ideal because they'll stay in sync in the future.
Comment #7
heine commentedSay what?
Huh?
The audience of the admin/build/themes table is very different from the audience on the user edit page. For the average site user, the info description is about as useful as the paths.
Comment #8
james marks commentedThis issue appears to have been resolved in both D7 and D6 without the use of this patch. Closing the issue.