diff --git a/drupal_commons.make b/drupal_commons.make index 20a5031..78ead40 100644 --- a/drupal_commons.make +++ b/drupal_commons.make @@ -36,9 +36,6 @@ projects[vote_up_down][download][type] = "git" projects[vote_up_down][download][revision] = "6.x-3.x" projects[vote_up_down][subdir] = "contrib" -; http://drupal.org/node/1016804#comment-5463316 -projects[vote_up_down][patch][] = "http://drupal.org/files/thumbs_up_down_widget-1016804-14.patch" - projects[views_attach][version] = 2.x-dev projects[views_attach][download][type] = "git" projects[views_attach][download][revision] = 6.x-2.x diff --git a/modules/features/commons_answers/commons_answers.module b/modules/features/commons_answers/commons_answers.module index 86e9bae..8c0c2d3 100644 --- a/modules/features/commons_answers/commons_answers.module +++ b/modules/features/commons_answers/commons_answers.module @@ -34,10 +34,9 @@ function commons_answers_strongarm_alter(&$items) { * Implementation of hook_vud_node_widget_alter(). */ function commons_answers_vud_node_widget_alter(&$widget, $node) { - // Depends on http://drupal.org/node/1398942. + // Selectively alter the thumbs widget to use our green/red up/down arrows. if ($node->type == 'answer') { - // TODO: Replace with Commons answers widget type when this is finalized. - $widget = 'thumbs_up_down'; + drupal_add_css(drupal_get_path('module', 'commons_answers') . '/css/commons_answers.css', 'theme'); } } diff --git a/modules/features/commons_answers/css/commons_answers.css b/modules/features/commons_answers/css/commons_answers.css new file mode 100644 index 0000000..7e05576 --- /dev/null +++ b/modules/features/commons_answers/css/commons_answers.css @@ -0,0 +1,8 @@ +.vud-widget-thumbs .up-inactive, +.vud-widget-thumbs .down-inactive, +.vud-widget-thumbs .up-active, +.vud-widget-thumbs .down-active { + background-image: url(../thumbs-sprite.png); +} + + diff --git a/modules/features/commons_answers/thumbs-sprite.png b/modules/features/commons_answers/thumbs-sprite.png new file mode 100644 index 0000000..19ad0e5 Binary files /dev/null and b/modules/features/commons_answers/thumbs-sprite.png differ