Hello,
I have been looking around for a means of alteringg the "subject" - or title - of a native drupal block. By native I mean non-custom. I have found references to these blocks in some of the modules, but they appear to be hard coded, so I figured I'd ask before hacking away. I can't find a reference to them anywhere in the database after having searched virtually the entire thing. I can't find a language file anywhere as well. I thought about altering the name when it comes in through the template, but that seems like more work than should be necesarry. I searched the forums and didn't find anything specific.
Please help if you can. This is on an installation of Drupal 4.6.2.
Thank you,
-- aym
Comments
Yes, those titles are
Yes, those titles are hardcoded. Here are a few ideas that might work:
1. The theme override as you mentioned above.
2. Hack the core. Probably the easiest and least time-consuming solution, but not upgrade friendly.
3. Enable the locale.module and create a custom language to override only those text strings that you want changed. I don't know much about locale.module, but I've seen other people give this answer too.
--
Bjorn | choirgeek.com
3
3 is the better answer. Hacking core always haunts you six months later :)
-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
Thanks to both of you
I will make an attempt at #3 first. I appreciate the help a ton. Hopefully I can avoid a haunting six months from now ;)
Thanks again,
-- aym
Agreed. #3 is the best
Agreed. #3 is the best answer!
--
Please read the handbook, search the forums, then ask...
http://drupal.etopian.net (Consulting, Development, and Hosting)