Create specific boolean radio widget
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 5 Mar 2008 20:45:31 +0000 (20:45 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 5 Mar 2008 20:45:31 +0000 (20:45 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13001 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/options.php

index 02638c9..cb39ea7 100644 (file)
@@ -30,6 +30,7 @@ define('SMOPT_TYPE_FLDRLIST_MULTI', 9);
 define('SMOPT_TYPE_EDIT_LIST', 10);
 define('SMOPT_TYPE_STRLIST_MULTI', 11);
 define('SMOPT_TYPE_BOOLEAN_CHECKBOX', 12);
+define('SMOPT_TYPE_BOOLEAN_RADIO', 13);
 
 /* Define constants for the options refresh levels. */
 define('SMOPT_REFRESH_NONE', 0);
@@ -324,6 +325,9 @@ class SquirrelOption {
             case SMOPT_TYPE_BOOLEAN_CHECKBOX:
                 $result = $this->createWidget_Boolean(TRUE);
                 break;
+            case SMOPT_TYPE_BOOLEAN_RADIO:
+                $result = $this->createWidget_Boolean(FALSE);
+                break;
             case SMOPT_TYPE_HIDDEN:
                 $result = $this->createWidget_Hidden();
                 break;