aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/radio.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-15 15:23:27 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-15 15:23:27 +0000
commit206f56148df2992769f713502e4168ab0990fd2c (patch)
tree533f70bcc4898c1397007d2f11a7a89188242999 /views/default/input/radio.php
parent71d39f1c4ca21bd25b9bda01451ae651cbbabb64 (diff)
downloadelgg-206f56148df2992769f713502e4168ab0990fd2c.tar.gz
elgg-206f56148df2992769f713502e4168ab0990fd2c.tar.bz2
Cleaning up input field views
git-svn-id: https://code.elgg.org/elgg/trunk@464 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/input/radio.php')
-rw-r--r--views/default/input/radio.php18
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 = "";