Index: voting.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/voting/voting.module,v retrieving revision 1.6 diff -u -p -r1.6 voting.module --- voting.module 11 Jul 2006 00:23:32 -0000 1.6 +++ voting.module 25 Oct 2006 16:55:57 -0000 @@ -184,6 +184,27 @@ function voting_settings() { '#size' => 40, '#maxlength' => 40, ); + $form['text']['voting_txt_average'] = array( + '#type' => 'textfield', + '#title' => t('"Average" message'), + '#default_value' => variable_get('voting_txt_average', 'Average'), + '#size' => 40, + '#maxlength' => 40, + ); + $form['text']['voting_txt_saving'] = array( + '#type' => 'textfield', + '#title' => t('"Saving" message'), + '#default_value' => variable_get('voting_txt_saving', 'Saving'), + '#size' => 40, + '#maxlength' => 40, + ); + $form['text']['voting_txt_votes'] = array( + '#type' => 'textfield', + '#title' => t('"votes" message'), + '#default_value' => variable_get('voting_txt_votes', 'votes'), + '#size' => 40, + '#maxlength' => 40, + ); return $form; } @@ -340,6 +361,9 @@ function theme_voting_control_flash($con $txt_vote4 = variable_get('voting_txt_vote4', 'Good'); $txt_vote5 = variable_get('voting_txt_vote5', 'Excellent'); $txt_login = urlencode(variable_get('voting_txt_login', 'Please login or register to vote.')); + $txt_average = urlencode(variable_get('voting_txt_average', 'Average')); + $txt_saving = urlencode(variable_get('voting_txt_saving', 'Saving')); + $txt_votes = urlencode(variable_get('voting_txt_votes', 'votes')); // optional: certain variables can be overridden on individual voting controls // ex: $output .= voting_control_generic('pagevote', $node->nid, array('prompt' => 'Do you like it?', 'confirmation' => 'Vote saved!', 'bgcolor' => '0xffffff')); @@ -352,7 +376,8 @@ function theme_voting_control_flash($con $optional_vars .= "&star_off_fill=$star_off_fill&star_off_border=$star_off_border&txt_color=$txt_color"; $optional_vars .= "&txt_vote1=$txt_vote1&txt_vote2=$txt_vote2&txt_vote3=$txt_vote3&txt_vote4=$txt_vote4&txt_vote5=$txt_vote5"; $optional_vars .= "&txt_login=$txt_login&txt_before_vote=$txt_before_vote&txt_after_vote=$txt_after_vote"; - + $optional_vars .= "&txt_average=$txt_average&txt_saving=$txt_saving&txt_votes=$txt_votes"; + // create the Flash filename, including the required variables and optional querystring $filename = base_path() . drupal_get_path('module', 'voting') . "/voting.swf?content_type=$content_type&content_id=$content_id&base_url=" . base_path() . $optional_vars;