I was sort of surprised to find that color.module automatically presumes you want to use an image with it. Perhaps this module was made with the presumption that it would used only with themes utilizing graphics. I don't think drupal shouldn't punish themes who do not utilize the module's base_image slicer (http://drupal.org/project/cleanstate).

This simple patch will eliminate bugs like this http://drupal.org/node/176537 while expanding color.module to fit themes that only wish to use the css color switching features. :)

Tested in Drupal 5.6, with Garland (w/ image) and cleanstate (w/o image) themes.

Although my first impression is it's safe, I am not very security-oriented, so I am putting this on code needs review.

CommentFileSizeAuthor
color_imageless.patch547 bytestonyn

Comments

birdmanx35’s picture

Version: 5.x-dev » 7.x-dev

Feature requests go to 7.x-dev.

tonyn’s picture

Status: Needs review » Closed (duplicate)

This has already been committed to 6.x-dev (http://drupal.org/node/213172).

tonyn’s picture

Title: Eliminate Color.module base_image requirement » Supress Color.module base_image requirement errors
Version: 7.x-dev » 5.x-dev
Category: feature » bug
Priority: Normal » Minor
Status: Closed (duplicate) » Needs review

This patch was meant to give the (to be) legacy drupal 5.x compatibility fix. Even if cleanstate is the only imageless theme utilizing color.module at the time, that doesn't say people theming this popular legacy version of drupal won't bump into this caveat in the future. It's not fair for them or Druplicon.

Couldn't this be submitted as a bugfix? It merely suppresses errors, after all. It bites.

tonyn’s picture

Title: Supress Color.module base_image requirement errors » Suppress Color.module base_image requirement errors

typo

drumm’s picture

Status: Needs review » Fixed

Committed to 5.x.

In the future, please do not open two issues for the same bug. The single issue can be moved around versions as needed. And watch your indentation, I had to fix a tab which should have been spaces.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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