I have installed the Nokia Mobile Theme along with the Acquia Prosper and Fusion Theme.

When I try to configure the Nokia Mobile Theme I get an error: Cannot redeclare phptemplate_settings() in theme-settings.php, line 66.

It appears the that hook_theme_settings function is named phptemplate_settings() (the previous name nokia_mobile_settings() is commented out).

If I change the name of this function to nokia_mobile_settings(), the error goes away.

Comments

atrasatti’s picture

Assigned: Unassigned » atrasatti
Status: Active » Needs work

Hi, thank you for reporting this, I will look into it. Function naming in Drupal themes is a bit tricky sometimes, in theory it's legal to call it phptemplate_settings, but I will see if I can make it work as nokia_mobile_settings as the functionality should be the same.

atrasatti’s picture

Status: Needs work » Fixed

This is fixed in CVS. If you could try it, I would appreciate, although the only change is, as you had suggested, to change the function name. I tested with your same set of themes and plugins and works fine for me, now.

CVS commit is #340210.

Status: Fixed » Closed (fixed)

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