code

(Submitted Sun, 2006-09-17 03:17)

Step 1:

Create a file called test.module in your modules directory

Step 2:

Copy and paste the following code

<?php
function test_form_alter($form_id, &$form) {
  if (isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id) {
    if (is_array($form['taxonomy'])) {
      foreach ($form['taxonomy'] as $vid => $taxonomy) {
        if (is_numeric($vid)) {
          if ($taxonomy['#multiple']) {
            $form['taxonomy'][$vid]['#type'] = 'checkboxes';
          }
          else {

(Submitted Sun, 2006-09-17 00:43)

This is just to track the changes I've found necessary to get the voting module functioning correctly. (Hey, why is it that the Voting module doesn't have a proper drupal.org/project page?) I'm going to ping benshell to see if he's actively maintaining the module. I certainly hope so -- it's pretty slick.

It would be interesting to work on a similar module for Drupal 5.0 that would make use of the JQuery library rather than flash to achieve the same sort of functionality.

  • drupal.org/node/76211:
  • Two settings are sharing the same variable in the function voting_settings(). The result of this is that the option to choose where - at the top or the bottom of a node - does not show up in the settings page. Patch not presently available.

    Quick Fix: In function voting_settings(), change the second instance of
    $form['general']['voting_location'] = array(
    to
    $form['general']['voting_show_in_teaser'] = array(

Hosted By Dreamhost.com