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.
Problem/Motivation
Unable to override the template using my theme.
Proposed resolution
Line 302 of sco_node.module reads:
'template' => 'sco_node',
I believe the underscore prevents the module from loading my theme override at 'sites/all/themes/[my_theme]/templates/sco-node.tpl.php'
Changing it to dash corrects the problem and loads my override:
'template' => 'sco-node',
Remaining tasks
This would be my first patch. Not sure when I'll get around to it.
Comment | File | Size | Author |
---|---|---|---|
#2 | templateoverride-2818547.patch | 339 bytes | gritchie |
Comments
Comment #2
gritchie CreditAttribution: gritchie commentedHere's the patch...
Comment #3
John Franklin CreditAttribution: John Franklin as a volunteer commentedThe
tpl/sco_node.tpl.php
file needs to be renamed, too.