I've set a default as such in my theme's .info file:

 styleswitcher[default] = Blue
 styleswitcher[css][Orange] = css/style-switch/alt-orange.css
 styleswitcher[css][Blue] = css/style-switch/alt-blue.css

However, I am getting repeated errors in my log:

Notice: Undefined index: default in styleswitcher_block_view() (line 49 of /home/webhost/public_html/sites/all/modules/styleswitcher/styleswitcher.module).

I think this might be related to: is it possible to specify a default css ? not working for some people.

Comments

danny englander’s picture

I am just following up on this, thanks.

pingwin4eg’s picture

Component: Miscellaneous » Code
Category: support » bug
Status: Active » Closed (duplicate)

in 7.x-1.x you should specify default css as styleswitcher[css][default] = some_stylesheet.css.
or apply the patch from http://drupal.org/node/1821356#comment-6785752