Currently the theme hook "twitter_status" declared by this module uses a template file named "tweet.tpl.php". Since this template file is not named the same as the theme hook, it cannot be overridden it by copying the template into your theme. Instead, you must copy and rename it to "twitter_status.tpl.php". This is unintuitive and a non-standard practice.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | twitter-n1974102-10-7.x-5.x.patch | 921 bytes | damienmckenna |
| #9 | twitter-n1974102-9-7.x-6.x.patch | 921 bytes | damienmckenna |
Comments
Comment #1
kerasai commentedPatch attached with file renamed, and hook_theme() implementation adjusted to suit.
Comment #2
hussainwebTo elaborate, the root bug is discussed in #342350: Override template files based on template filename as well as hook name and it doesn't look like it would be fixed for Drupal 7 (it is fixed for Drupal 8).
I am attaching a patch with the workaround for 7.x-6.x branch and I would say this is a major bug.
Comment #3
m.abdulqader commentedcopy your tweet.tpl.php to your theme and rename it to twitter_status.tpl.php that will work without this patch :)
Comment #4
damienmckennaTriggering the testbot.
Comment #5
damienmckennaTriggering the testbot.
Comment #9
damienmckennaRerolled.
Comment #10
damienmckennaPorted to 7.x-5.x.
Comment #12
damienmckennaCommitted.