Created
December 16, 2011 15:25
-
-
Save EHLOVader/1486452 to your computer and use it in GitHub Desktop.
Lemonstand: get select options for field function example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function get_field_name_options($current_key_value = -1) | |
{ | |
$options = array( | |
'value'=>'text', | |
'someid'=>'Some Option' | |
); | |
if ($current_key_value == -1) | |
return $options; | |
return isset($options[$current_key_value]) ? $options[$current_key_value] : null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment