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.
How to override the widget template file from the theme? Why are you using some pseudo-theming and partially re-implementing Drupal theming system?
Comments
Comment #1
marvil07 CreditAttribution: marvil07 commentedSee documentation at WIDGETAPI.txt file.
About why, copying one docblock from code:
Comment #2
Dmitriy.trt CreditAttribution: Dmitriy.trt commentedThanks!
Comment #4
AkliOnet CreditAttribution: AkliOnet commentedHi, I have folowed the method Putting widgets in a theme .What I have done :
copy "plugins[vud][widgets] = widgets" in theme.info
copy the widget folder from vote_up_down to theme directory
and I get this :
Fatal error: Cannot redeclare vud_thumbs_vud_widgets() (previously declared in C:\wamp\www\Crowdstore\sites\all\modules\vote_up_down\widgets\thumbs\thumbs.inc:10) in C:\wamp\www\Crowdstore\sites\all\themes\bootstrap\widgets\thumbs\thumbs.inc on line 17
Where I am wrong ?
Thk