diff options
Diffstat (limited to 'views/default/input/radio.php')
-rw-r--r-- | views/default/input/radio.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/views/default/input/radio.php b/views/default/input/radio.php index 6c60fab54..8f20131b2 100644 --- a/views/default/input/radio.php +++ b/views/default/input/radio.php @@ -1,5 +1,23 @@ <?php
+ /**
+ * Elgg radio input
+ * Displays a radio input field
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ *
+ * @uses $vars['value'] The current value, if any
+ * @uses $vars['js'] Any Javascript to enter into the input tag
+ * @uses $vars['internalname'] The name of the input field
+ * @uses $vars['options'] An array of strings representing the options for the radio field
+ *
+ */
+
foreach($vars['options'] as $option => $label) {
if ($option != $vars['value']) {
$selected = "";
|