/[drupal]/contributions/modules/views_checkboxes/views_checkboxes.module
ViewVC logotype

Diff of /contributions/modules/views_checkboxes/views_checkboxes.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.8.2.3, Sun Apr 6 19:50:05 2008 UTC revision 1.8.2.4, Sun Apr 6 20:25:41 2008 UTC
# Line 118  function views_checkboxes_form_alter($fo Line 118  function views_checkboxes_form_alter($fo
118    
119        // Check to see if we will have anything more to do and set up new types if so        // Check to see if we will have anything more to do and set up new types if so
120        switch ($exposed['single']) {        switch ($exposed['single']) {
121          case '0':                                                       // Not single: use checkboxes          case 0:                                                         // Not single: use checkboxes
122            if (!variable_get('views_checkboxes_checkbox_enable', false))  continue;  // Not enabled, skip            if (!variable_get('views_checkboxes_checkbox_enable', false))  continue;  // Not enabled, skip
123            $this_type = 'checkboxes';                                    // Set new type            $this_type = 'checkboxes';                                    // Set new type
124            break;            break;
125          case '1':                                                       // Single: use radios          case 1:                                                         // Single: use radios
126            if (!variable_get('views_checkboxes_radio_enable', false))  continue;  // Not enabled, skip            if (!variable_get('views_checkboxes_radio_enable', false))  continue;  // Not enabled, skip
127            $this_type = 'radios';                                        // Set new type            $this_type = 'radios';                                        // Set new type
128            break;            break;
129          default:          default:
         echo "exposed:single: ".$exposed['single'];  
130            continue;                                                     // Neither (!?) so skip it anyway            continue;                                                     // Neither (!?) so skip it anyway
131        }        }
132    

Legend:
Removed from v.1.8.2.3  
changed lines
  Added in v.1.8.2.4

  ViewVC Help
Powered by ViewVC 1.1.2