On 8 Nov 2006, at 15:25, Bèr Kessels wrote:
Op dinsdag 7 november 2006 14:59, schreef Mark Hope:
and is this best practice?
No.
Thanks for the feedback Bèr.
The text replacement usage I mentioned was to (mainly) replace inline images inserted with img_assist. The best practice I was asking about was what text to present to the user, having stripped the images using preg_replace.
I'm just beginning to understand the power of theming in Drupal, so thanks for your comments below.
Mark
The theme system *should* be fully (x)html independant. Meaning, that you *should* be able to create a text-only theme without any hacks.
note the marks around *should*.
However, in your case you should be able to replace over 80% of the image by overriding theme_image. Then there will be another 10% that can be removed by overriding other theme_ functions. All left images that are not extractable with a theme function is a bug. If you find any such in core, please file a bug-report, because you have then found hardcoded HTML, which is considered a bug. Same goes for other modules.
Bèr _______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes