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: The drop-down options.
Related topics
File
- modules/
examples/ ajax_example/ ajax_example.module, line 615 - Hook implementations for the AJAX Example module.
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'),
)
);
}