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

marvil07’s picture

Status: Active » Fixed

See documentation at WIDGETAPI.txt file.

About why, copying one docblock from code:

 * We do this since we do not have standard theme overwrite because
 * is not possible to decide dynamically the path where the template is
 * located(in contrast with function names and template names).
Dmitriy.trt’s picture

Thanks!

Status: Fixed » Closed (fixed)

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

AkliOnet’s picture

Hi, 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