Changeset 3040 for tags/2.1.3
- Timestamp:
- 07/10/2008 02:57:18 PM (5 months ago)
- Location:
- tags/2.1.3/modules/forge/libraries
- Files:
-
- 1 modified
- 1 copied
-
Form_Checkbox.php (modified) (2 diffs)
-
Form_Radio.php (copied) (copied from trunk/modules/forge/libraries/Form_Radio.php)
Legend:
- Unmodified
- Added
- Removed
-
tags/2.1.3/modules/forge/libraries/Form_Checkbox.php
r2705 r3040 38 38 $data = $this->data; 39 39 40 if (empty($data['checked'])) 41 { 42 // Not checked 43 unset($data['checked']); 44 } 45 else 46 { 47 // Is checked 48 $data['checked'] = 'checked'; 49 } 50 40 51 if ($label = arr::remove('label', $data)) 41 52 { … … 44 55 } 45 56 46 return '<label>'.form:: checkbox($data).$label.'</label>';57 return '<label>'.form::input($data).$label.'</label>'; 47 58 } 48 59
