From 2e42219f0ee4bc07f8f3c262242e06ad4f92023e Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 26 Jun 2008 18:33:26 +0000 Subject: Pulldown menu view now supports passing values as well as options as an associative array "value" => "option text" called $vars['options_values'] git-svn-id: https://code.elgg.org/elgg/trunk@1156 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/input/pulldown.php | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) (limited to 'views/default/input/pulldown.php') diff --git a/views/default/input/pulldown.php b/views/default/input/pulldown.php index a83534c41..520a62c88 100644 --- a/views/default/input/pulldown.php +++ b/views/default/input/pulldown.php @@ -15,7 +15,8 @@ * @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 pulldown field - * + * @uses $vars['options_values'] An associative array of "value" => "option" where "value" is an internal name and "option" is + * the value displayed on the button. Replaces $vars['options'] when defined. */ ?> @@ -23,14 +24,25 @@ \ No newline at end of file -- cgit v1.2.3