Skip to content

Instantly share code, notes, and snippets.

@EHLOVader
Created December 16, 2011 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EHLOVader/1486452 to your computer and use it in GitHub Desktop.
Save EHLOVader/1486452 to your computer and use it in GitHub Desktop.
Lemonstand: get select options for field function example
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