_ajax_example_get_first_dropdown_options

7 ajax_example.module _ajax_example_get_first_dropdown_options()
8 ajax_example.module _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

ajax_example/ajax_example.module, line 519
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')));
}
Login or register to post comments