_ajax_example_get_first_dropdown_options
Drupal 7 _ajax_example_get_first_dropdown_options()
Helper function to populate the first dropdown. This would normally be pulling data from the database.
Return value
array of options
Related topics
2 calls to _ajax_example_get_first_dropdown_options()
File
- sites/
all/ modules/ examples/ ajax_example/ ajax_example.module, line 563 - AJAX Examples module file with basic examples.
Code
function _ajax_example_get_first_dropdown_options() {
// drupal_map_assoc() just makes an array('String' => 'String'...).
return drupal_map_assoc(array(t('String'), t('Woodwind'), t('Brass'), t('Percussion')));
}

