1 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 Dropdown options.

Related topics

File

modules/examples/ajax_example/ajax_example.module, line 619
AJAX Examples module file with basic examples.

Code

function _ajax_example_get_first_dropdown_options() {
  // backdrop_map_assoc() just makes an array('String' => 'String'...).
  return backdrop_map_assoc(
  array(
    t('String'),
    t('Woodwind'),
    t('Brass'),
    t('Percussion'),
  )
  );
}