Closed (fixed)
Project:
Tagadelic
Version:
master
Component:
Code
Priority:
Normal
Category:
Task
Reporter:
Anonymous (not verified)
Created:
13 Apr 2006 at 19:48 UTC
Updated:
19 Aug 2015 at 15:54 UTC
Jump to comment: Most recent
Here's a patch that just changes theme("add_style", "path"); to use the new theme_add_style("path");
| Comment | File | Size | Author |
|---|---|---|---|
| tagadelic_theme_add_style.patch | 1.74 KB | Anonymous (not verified) |
Comments
Comment #1
Bèr Kessels commentedThe patch looks weird to me. we NEVER call theme functions directly.
Comment #2
Bèr Kessels commentedComment #3
morbus ifftheme_add_style is a core helper monkey, not a traditional theme function.
Comment #4
morbus iffActually, oddly, there is one place in core, theme.inc, that uses theme('add_style') for misc/maintenance.css. So I'm not entirely sure now. I coulda swore I've seen it in common usage as just theme_add_style(). Can we define themename_add_style to futz with it?
Comment #5
Bèr Kessels commentedhttp://drupal.org/node/51306
we must use the theme('stylesheet_import') instead.
Comment #6
Anonymous (not verified) commentedok, thanks. I was told to use theme_add_style() when I upgraded my modules to 4.7
Comment #7
Tobias Maier commentedif you track back the code used in drupal core you will come to the conclusion that this function cant be themed.
theme_add_style() is called by theme_get_style() and this gets called by
theme_page() AND phptamplate_page() directly...
so this is right imho
Comment #8
Bèr Kessels commentedFixed in 4.7 and HEAD.
Comment #9
(not verified) commented