User: marvil07 Branch: HEAD Date: Tue, 29 Jun 2010 04:27:37 +0000 Modified files: /modules/vote_up_down README.txt vud.theme.inc /modules/vote_up_down/vud_comment vud_comment.module /modules/vote_up_down/vud_node vud_node.module /modules/vote_up_down/vud_term vud_term.module Log message: task #821048 by marvil07: Make widgets easy to theme. - update vud_widget arguments on hook_theme(). - we do not have standard theme overwrite so, generalizing a pseudo theming function for widgets and votes: vud_pseudo_theming(), to reuse it on both proxy functions. We do that in this way: - let modules modify variables passed to the template - and then provide template suggestions by hand. so, stop providing function suggestions at theme calls, now we are using a mimic of template suggestions. we are not using direct theme templates because is not possible to decide dinamically the path where the template is located(in contrast with function names and template names). - for this change create and implement hook_template_suggestions() on vud_* modules - no more need to use implement hook_theme() on vud_* modules. - fix: define vud_votes theme hook once at vud.theme.inc - remove vud_theme_functions() an update theme calls accordingly - document all this changes! Links: http://cvs.drupal.org/diff.php?path=contributions/modules/vote_up_down/READM... http://cvs.drupal.org/diff.php?path=contributions/modules/vote_up_down/vud.t... http://cvs.drupal.org/diff.php?path=contributions/modules/vote_up_down/vud_c... http://cvs.drupal.org/diff.php?path=contributions/modules/vote_up_down/vud_n... http://cvs.drupal.org/diff.php?path=contributions/modules/vote_up_down/vud_t...