Closed (fixed)
Project:
Switchtheme
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2008 at 19:32 UTC
Updated:
16 Nov 2008 at 12:52 UTC
The first thing I want to do when I activate this module is go into the settings and capitalize the theme names that appear in the drop down list. It just looks better, and changing each of them by hand would not be fun if you have a lot of themes. Drupal provides a function for capitalizing the first character of a string (http://api.drupal.org/api/function/drupal_ucfirst/5), and here's a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| capitalize_theme_name.patch | 812 bytes | SeanA |
Comments
Comment #1
sunReasonable request. However, I only want this to happen if an administrator did not enter (override) a custom theme name manually in Switchtheme's settings. 5.x-1.2 is about to be released within the next days, so if you'll provide a solid patch, this feature will be contained.
Comment #2
SeanA commentedSorry, I should have been more explicit. The patch only capitalizes the default labels, it won't do anything if an administrator has made any changes.
Comment #3
sunOf course you're right. Needs testing.
Comment #4
sunThanks, committed to all branches.