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.
To allow for developers to override or customize the HTML generated to replace embed codes, all HTML output should be done in a theme()
function. This patch moves some code from _mytube_replaceembed
to a template file, which allows it to be customized using hook_preprocess_mytube_instance()
or by overriding the template file.
The patch should apply cleanly to the 6.x-1.x branch.
Comment | File | Size | Author |
---|---|---|---|
#1 | mytube-theme_function-7.x-2082717-2.patch | 7.37 KB | grndlvl |
mytube-theme_function.patch | 7.72 KB | theunraveler | |
Comments
Comment #1
grndlvl CreditAttribution: grndlvl commentedRe-rolled against 7.x-1.x.
Comment #3
mfb\o/