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?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

brunodbo’s picture

Title: Theme file not being picked up in custom theme » Template file not being picked up in custom theme
brunodbo’s picture

Category: Support request » Bug report
Status: Active » Needs review
FileSize
15.12 KB

When 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.

brunodbo’s picture

New patch, using hyphens instead of underscores for the template file names.

Status: Needs review » Needs work

The last submitted patch, 3: mollom-tpl-file-not-getting-picked-up-2416151-3.patch, failed testing.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 3: mollom-tpl-file-not-getting-picked-up-2416151-3.patch, failed testing.

eshta’s picture

Status: Needs work » Needs review
FileSize
14.88 KB

I 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!

brunodbo’s picture

And pass :) Thanks.

eshta’s picture

@brunobdo - does this patch work for you in your theme?

brunodbo’s picture

Yep, it does. I can copy the Mollom template file to my custom theme, clear the cache, and the overriding works.

eshta’s picture

Status: Needs review » Reviewed & tested by the community

  • eshta committed 4c2e744 on 7.x-2.x
    Issue #2416151 by brunodbo, eshta: Template file not being picked up in...

  • eshta committed d92abda on 6.x-2.x
    Issue #2416151 by brunodbo, eshta: Template file not being picked up in...
eshta’s picture

Status: Reviewed & tested by the community » Fixed

Committed and backported. Thanks @brunobdo!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.