Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I copied the mollom.captcha.image.tpl.php template file to my custom theme's directory, changed a bit of text in the file, and cleared the cache. The template file isn't getting picked up for some reason - the original mollom.captcha.image.tpl.php in the Mollom module directory is still used. My theme is part of an installation profile, but I don't think that should matter. Any suggestions?
Comment | File | Size | Author |
---|---|---|---|
#7 | 2416151.mollom.template_names.7.patch | 14.88 KB | eshta |
#3 | mollom-tpl-file-not-getting-picked-up-2416151-3.patch | 15.12 KB | brunodbo |
#2 | mollom-tpl-file-not-getting-picked-up-2416151-2.patch | 15.12 KB | brunodbo |
Comments
Comment #1
brunodboComment #2
brunodboWhen I change the periods with underscores in the template file names, the copied template file in my custom theme does get picked up. Attached patch makes those changes. Not 100% sure about the template file naming convention in this case.
Comment #3
brunodboNew patch, using hyphens instead of underscores for the template file names.
Comment #7
eshta CreditAttribution: eshta commentedI fixed the reference to in the theme hook. I think you are correct that it should have been hyphens.
https://www.drupal.org/node/173880
Go bots go!
Comment #8
brunodboAnd pass :) Thanks.
Comment #9
eshta CreditAttribution: eshta commented@brunobdo - does this patch work for you in your theme?
Comment #10
brunodboYep, it does. I can copy the Mollom template file to my custom theme, clear the cache, and the overriding works.
Comment #11
eshta CreditAttribution: eshta commentedComment #14
eshta CreditAttribution: eshta commentedCommitted and backported. Thanks @brunobdo!