[development] Overriding CSS files in themes

Gabor Hojtsy gabor at hojtsy.hu
Wed Nov 1 10:45:13 UTC 2006


Steven Wittens wrote:
> As far as I know, theme_add_style() is not and never has been a themable 
> function. In 4.7, it is only once invoked in its themable form, which is 
> obviously as a mistake. And, ironically that's inside 
> theme_maintenance_page(), which is unthemable by definition. The proper 
> function to use in 4.7 is theme('stylesheet_import').

Well, the problem was that 'theme_' prefixes were used in non-themeable 
function names. This should not have been the practice at the first 
place, but it is now a known problem, and is getting fixed (in all 
cases??) in Drupal 5.0.

Gabor


More information about the development mailing list