Log of /contributions/modules/decisions/decisions.module
Parent Directory
|
Revision Log
|
Revision Graph
Revision
1.212 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Jul 27 23:00:15 2009 UTC
(4 months ago)
by
anarcat
Branch:
MAIN
Changes since
1.211: +901 -4 lines
Diff to
previous 1.211
#532242 - fix various issues by merging decisions.inc decisions_node.inc decisions_datetime.inc together in decisions.module. we can optimize later if really necessary.
Revision
1.207 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Mar 12 22:28:19 2009 UTC
(8 months, 2 weeks ago)
by
anarcat
Branch:
MAIN
Changes since
1.206: +5 -1 lines
Diff to
previous 1.206
proper error message when no user has been supplied when adding user to
electoral list
Closes: #400172
Patch from: samuelsov
Revision
1.196 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Dec 5 02:42:46 2008 UTC
(11 months, 3 weeks ago)
by
anarcat
Branch:
MAIN
Changes since
1.195: +25 -5 lines
Diff to
previous 1.195
add back results tab since it may happen that the user has the right
to view results but yet has not voted
Revision
1.186 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Dec 5 00:03:56 2008 UTC
(11 months, 3 weeks ago)
by
anarcat
Branch:
MAIN
Changes since
1.185: +1 -8 lines
Diff to
previous 1.185
remove the in_preview check, that was a hack anyways. we always
display the node the same wether we're in preview or not now.
Revision
1.185 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Dec 5 00:02:16 2008 UTC
(11 months, 3 weeks ago)
by
anarcat
Branch:
MAIN
Changes since
1.184: +10 -11 lines
Diff to
previous 1.184
don't call hook_form_validate() from hook_form_submit(), it's
automatic stupid.
fix quorum calculations when no one voted
Revision
1.184 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Dec 4 23:55:49 2008 UTC
(11 months, 3 weeks ago)
by
anarcat
Branch:
MAIN
Changes since
1.183: +3 -14 lines
Diff to
previous 1.183
revert part of last commit: always show votes tab if user has
permission, regarless of the status of the decision
also fix the number of votes if zero
Revision
1.173 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Nov 26 20:18:26 2008 UTC
(12 months ago)
by
anarcat
Branch:
MAIN
Changes since
1.172: +7 -14 lines
Diff to
previous 1.172
use the nifty votingapi_current_user_identifier() function instead of
hardcoding ips and user ids
logic is the same anyways
Revision
1.172 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Nov 26 20:12:36 2008 UTC
(12 months ago)
by
anarcat
Branch:
MAIN
Changes since
1.171: +11 -6 lines
Diff to
previous 1.171
a bunch of fixes:
* fix "if voted" calculations (vote considered cast in if match found
on user id (if logged in) or ip IP found in database otherwise)
* fix theme registry
* fix ip_address() usage
Revision
1.161 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Nov 28 22:05:39 2006 UTC
(3 years ago)
by
tatien
Branch:
MAIN
Changes since
1.160: +59 -56 lines
Diff to
previous 1.160
Second patch for task #100267:
* Made sure all electoral list functions are together and are prefixed by electoral_list_
* Changed decisions_tab_something-like functions to decisions_something_tab
* In decisions_datetime.inc, prefixed the decisions_translate_form_date() function with an underscore
Revision
1.160 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Nov 28 21:56:34 2006 UTC
(3 years ago)
by
tatien
Branch:
MAIN
Changes since
1.159: +388 -358 lines
Diff to
previous 1.159
First patch for task #100267:
* All non-API functions prefixed with an underscore and should be at the end
* Theme functions grouped together
* Grouped functions by category (API, theme, electoral list, mode-related, callbacks, internal)
Revision
1.155 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Nov 22 17:07:26 2006 UTC
(3 years ago)
by
tatien
Branch:
MAIN
Changes since
1.154: +98 -36 lines
Diff to
previous 1.154
Third patch on the #88217 issue:
- Handles the functionalities of start and close dates through two new functions "decisions_can_vote()" and "decisions_is_open()"
- Prints status messages at the top of the node view to inform the user about quorum/can vote/is open isues
- Adds a theme_decisions_status() function to print status messages such as "This decision is not yet opened."
- Modifies the decisions_view_vote_counts() to print date information; renames the function to theme_decisions_view_header()
Revision
1.153 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Nov 22 15:37:56 2006 UTC
(3 years ago)
by
tatien
Branch:
MAIN
Changes since
1.152: +38 -15 lines
Diff to
previous 1.152
Second patch on #88217.
Adds a "no end date" checkbox to specify an infinite voting period (no closing date). Still not operational, only saves it properly in the DB.
Revision
1.152 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Nov 22 15:15:06 2006 UTC
(3 years ago)
by
tatien
Branch:
MAIN
Changes since
1.151: +159 -13 lines
Diff to
previous 1.151
Here is a first commited patch relevant to issue #88217. Here are its main features:
* Replace the "duration" select box by a "Closing date" widget.
* Add a "Start date" widget.
* Does not change the current fields in the DB whatsoever.
The plan is to reintegrate the duration as an option later on (like, you'd be able to choose between a closing date or a duration). This patch merely handles the saving/loading of those values: it still does not affects the behavior of the decision.
Revision
1.151 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Nov 21 21:25:21 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.150: +11 -12 lines
Diff to
previous 1.150
back out the idea of putting maxchoices with the choices, it just
doesn't work, as the choice fieldset seems to force its children to be
integer-indexed. it also doesn't blend very well with the way we
handle choices to add non-choices items in there.
Revision
1.149 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Nov 21 20:25:54 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.148: +2 -2 lines
Diff to
previous 1.148
fix validation hooks by passing $_POST to them
the poll validation function was also returning false in some corner
cases when the form didn't have errors
Revision
1.147 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Nov 21 20:08:35 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.146: +15 -21 lines
Diff to
previous 1.146
add a "function" argument to help tracking "panic_on_mode" issues and
fix one of those issues (bad quoting in view_results())
Revision
1.146 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Nov 21 19:50:18 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.145: +6 -6 lines
Diff to
previous 1.145
make progress towards #93573: make all decision mode hooks be
decisions_hook_foo()
there remains weird functions in ranking.inc I need to fix
Revision
1.144 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Nov 21 19:03:10 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.143: +2 -2 lines
Diff to
previous 1.143
fix for #98052: use "administer decisions" instead of "administer " as
a permission for removing voter, probably due to a bad merge from advpoll
Revision
1.143 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Nov 21 18:45:09 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.142: +62 -64 lines
Diff to
previous 1.142
usability:
- import javascript fixes from advpoll
- hide the "Need more choices" button for javascript-enabled clients
(since we now have a dynamic "add choice" button): #93939
- put maxchoices in the choices fieldset
- create a seperate fieldset for quorum
- improve quorum descriptions
Revision
1.141 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Nov 21 18:15:25 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.140: +124 -27 lines
Diff to
previous 1.140
patch for #92141, from tatien: implement quorum.
this patch also factors out a few functions to extract votes in a
convenient format, count eligible voters and renames the
"decisions_view_electoral_list()" function to a more appropriate
"decisions_view_vote_count()" since it doesn't really display the
electoral list.
Revision
1.135 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 9 21:36:54 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.134: +8 -5 lines
Diff to
previous 1.134
(hook_votingapi_calculate): don't call unless we're the proper
content_type, and actually call the mode hook
inspired by: advpoll
Revision
1.132 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 9 20:40:55 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.131: +19 -15 lines
Diff to
previous 1.131
split a decisions_vote() function out of the weird _voting_form_submit() that isn't called from anywhere, keeping compatibility. change the hook_submit() to hook_vote() in modes, and document appropriatly
Revision
1.129 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 9 19:24:11 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.128: +4 -7 lines
Diff to
previous 1.128
a modified version of tatien's patch #8: remove the final hardcoding
of decisions modes in the .module in hook_insert()
Revision
1.128 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 9 19:10:56 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.127: +17 -34 lines
Diff to
previous 1.127
patch #7 from tatien: encapsulate the tab display in mode functions, also document more stuff in API and the changelog
Revision
1.124 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 9 18:03:34 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.123: +16 -34 lines
Diff to
previous 1.123
apply decisions-cvs_tatien_93520_2.patch (and _3) from tatien: get rid
of the ambiguous _decisions_mode_list() function that was redundant.
small modification to the patch: actually return the decisions modes
so that this function can be used to access all the decision modes
Revision
1.123 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 9 16:49:44 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.122: +22 -10 lines
Diff to
previous 1.122
apply patch decisions-cvs_tatien_93520_1.patch from tatien: create _algorithm() hooks to let decision modes list their algorithms
Revision
1.118 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Nov 4 23:31:50 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.117: +19 -15 lines
Diff to
previous 1.117
make "morechoices" work on 5.x: don't assume that $form contains the
submitted data, it doesn't, and configure the form as #multistep so
that $form_values are passed in
don't store the "choices" setting in the node.
explicitely set the value of the morechoices input
Revision
1.117 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Nov 3 21:16:12 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.116: +44 -79 lines
Diff to
previous 1.116
fix issue #92126, with a modified version of David's patch: forms are now displayed, votes recorded and cancelable properly
Revision
1.116 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Nov 3 19:46:04 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.115: +1 -5 lines
Diff to
previous 1.115
resync with advpoll, up to #44221: "Remove obsolete message_access()
per Harry_Slaughter's bug report"
also comment which why some patches where skipped and which will be
eventuall imported
Revision
1.115 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Nov 3 19:41:36 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.114: +34 -6 lines
Diff to
previous 1.114
merge from advpoll #44129: compatibility fixes between 4.7 and 5.0:
fix settings form for 5.0, include some provisions to try to make HEAD
work with 4.7.
Revision
1.61.2.1 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Oct 31 17:33:03 2006 UTC
(3 years ago)
by
anarcat
Branch:
DRUPAL-4-7
Changes since
1.61: +626 -192 lines
Diff to
previous 1.61
Bring the 4.7 branch in sync with the latest changes in CVS, apart
from the 5.0 work that has been started.
This patch incorporates changes between 2006-02-08 00:00 and
2006-10-30 22:00, which changes are detailed in CHANGELOG.txt.
Revision
1.110 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Oct 31 01:23:46 2006 UTC
(3 years ago)
by
anarcat
Branch:
MAIN
Changes since
1.109: +11 -11 lines
Diff to
previous 1.109
44089: "Better db definition for advpoll_choices: rename chtext to
label and chorder to vote_offset" - with update to the current
update hook
Revision
1.92 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Oct 15 04:01:39 2006 UTC
(3 years, 1 month ago)
by
chriskennedy
Branch:
MAIN
Changes since
1.91: +40 -31 lines
Diff to
previous 1.91
#88703, create true separate content types for ranking and poll (but use the same base functions)
Revision
1.85 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Oct 14 05:40:50 2006 UTC
(3 years, 1 month ago)
by
chriskennedy
Branch:
MAIN
Changes since
1.84: +18 -2 lines
Diff to
previous 1.84
#88277, add initial _settings hook code for configurable results viewing (not fully implemented yet though)
Revision
1.78 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Oct 9 00:09:21 2006 UTC
(3 years, 1 month ago)
by
chriskennedy
Branch:
MAIN
Changes since
1.77: +21 -13 lines
Diff to
previous 1.77
Show results immediately after voting (#86995 by fajerstarter); add SQL to store default algorithms (poll/runoff)
Revision
1.76 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Oct 8 23:33:33 2006 UTC
(3 years, 1 month ago)
by
chriskennedy
Branch:
MAIN
Changes since
1.75: +146 -92 lines
Diff to
previous 1.75
#85841, #85399, #86988 - Separate decision creation by mode, add an algorithm column to the db, change runoff to ranking, fix previews, improve usability (bugs by fajerstarter)
Revision
1.51 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Feb 7 06:44:05 2006 UTC
(3 years, 9 months ago)
by
anarcat
Branch:
MAIN
Changes since
1.50: +23 -7 lines
Diff to
previous 1.50
rewrite parts of the module loader to use a static
_decisions_mode_list() function
we therefore remove the last remnant of the static system by
auto-generating the choice of modes in the _form() hook
Revision
1.35 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Feb 7 02:38:49 2006 UTC
(3 years, 9 months ago)
by
anarcat
Branch:
MAIN
Changes since
1.34: +13 -2 lines
Diff to
previous 1.34
automatic detection of modules in modes/*.include
this uses the dirname(__FILE__) hack, which might not be appropriate.
Revision
1.31 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Feb 7 02:13:07 2006 UTC
(3 years, 9 months ago)
by
anarcat
Branch:
MAIN
Changes since
1.30: +27 -16 lines
Diff to
previous 1.30
factor out unknown mode warnings
factor out vote in a seperate function to do hooks as for view_voting()
Revision
1.29 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Feb 7 01:35:12 2006 UTC
(3 years, 9 months ago)
by
anarcat
Branch:
MAIN
Changes since
1.28: +2 -2 lines
Diff to
previous 1.28
display at least 2 options, even if the field is set to 0
this will avoid showing a confusing interface in the decision edition
if we stumble upon bugs that clear the options list
Revision
1.21 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Feb 5 17:09:04 2006 UTC
(3 years, 9 months ago)
by
steph
Branch:
MAIN
Changes since
1.20: +12 -10 lines
Diff to
previous 1.20
THis commit might break the module.
Just added some code to complete the runoff calculation. Not tested. Just to share
Revision
1.20 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Feb 5 16:49:40 2006 UTC
(3 years, 9 months ago)
by
steph
Branch:
MAIN
Changes since
1.19: +61 -7 lines
Diff to
previous 1.19
First implementation of roundoff, full of traces, sorry. What is need to do:
// What do we need to do here:
// "The votes for Nashville have Chattanooga as a second choice, but as Chattanooga has been eliminated, they instead transfer to their third choice, Knoxville."
// http://en.wikipedia.org/wiki/Instant-runoff_voting
// Autrement dit, si le second choix est éliminé, il faut regardé le troisième choix. Z
Revision
1.5 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jan 31 17:40:33 2006 UTC
(3 years, 9 months ago)
by
anarcat
Branch:
MAIN
Changes since
1.4: +43 -9 lines
Diff to
previous 1.4
make optorder a primary key in the options to distinguish between options
make option saving work
"more options" also mostly works now
Revision
1.4 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Jan 26 04:28:04 2006 UTC
(3 years, 10 months ago)
by
mathieu
Branch:
MAIN
Changes since
1.3: +72 -22 lines
Diff to
previous 1.3
Converted some more stuff (inspired by poll.module) to "forms api"
Added some yet-to-be coded hooks
Cleaned up a bit ...
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
select a symbolic revision name using the selection box, or choose
'Use Text Field' and enter a numeric revision.