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.

CommentFileSizeAuthor
capitalize_theme_name.patch812 bytesSeanA

Comments

sun’s picture

Status: Needs review » Needs work

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

SeanA’s picture

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

sun’s picture

Status: Needs work » Needs review

Of course you're right. Needs testing.

sun’s picture

Status: Needs review » Fixed

Thanks, committed to all branches.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.