ccb6762143
- reallow components to not have a label, use the key field for reference instead. - "quizz-like" behavior: compare submissions against a default submission (only works for select fields so far)
26 lines
694 B
Plaintext
26 lines
694 B
Plaintext
$OpenBSD: patch-components_select_inc,v 1.1 2009/09/20 13:29:33 espie Exp $
|
|
--- components/select.inc.orig Wed Mar 4 06:05:11 2009
|
|
+++ components/select.inc Sun Sep 20 15:27:43 2009
|
|
@@ -401,6 +401,21 @@ function _webform_table_data_select($data) {
|
|
return $output;
|
|
}
|
|
|
|
+function _webform_csv_account_select($results, $current, $ref, $component)
|
|
+{
|
|
+ if (is_null($current['value'])) {
|
|
+ return $results;
|
|
+ }
|
|
+ if (is_null($ref['value'])) {
|
|
+ return $results;
|
|
+ }
|
|
+ $results[0] += 1;
|
|
+ if ($current['value'] == $ref['value']) {
|
|
+ $results[1] += 1;
|
|
+ }
|
|
+ return $results;
|
|
+}
|
|
+
|
|
|
|
/**
|
|
* Return the header information for this component to be displayed in a comma
|