2007-07-19 12:40:28 +02:00
|
|
|
<?php
|
2008-08-25 10:58:38 +02:00
|
|
|
|
2008-01-09 05:18:36 +01:00
|
|
|
/**
|
2008-01-20 09:58:04 +01:00
|
|
|
* Grouped dropdown, using <optgroup> tags.
|
|
|
|
*
|
2008-08-25 10:58:38 +02:00
|
|
|
* @deprecated - Please use DropdownField instead!
|
|
|
|
*
|
2008-01-20 09:58:04 +01:00
|
|
|
* $source parameter (from DropdownField) must be a two dimensional array.
|
|
|
|
* The first level of the array is used for the <optgroup>, and the second
|
|
|
|
* level are the <options> for each group.
|
|
|
|
*
|
|
|
|
* Returns a <select> tag containing all the appropriate <option> tags, with
|
|
|
|
* <optgroup> tags around the <option> tags as required.
|
|
|
|
*
|
2008-01-09 05:18:36 +01:00
|
|
|
* @package forms
|
|
|
|
* @subpackage fields-basic
|
|
|
|
*/
|
2007-07-19 12:40:28 +02:00
|
|
|
class GroupedDropdownField extends DropdownField {
|
2008-01-20 09:58:04 +01:00
|
|
|
|
|
|
|
function Field() {
|
2008-08-25 10:58:38 +02:00
|
|
|
user_error('GroupedDropdownField is deprecated. Please use DropdownField instead.', E_USER_NOTICE);
|
2007-07-19 12:40:28 +02:00
|
|
|
|
2008-08-25 10:58:38 +02:00
|
|
|
return parent::Field();
|
2008-01-20 09:58:04 +01:00
|
|
|
}
|
2007-07-19 12:40:28 +02:00
|
|
|
}
|
2008-01-20 09:58:04 +01:00
|
|
|
|
|
|
|
?>
|