function bat_type_bundles_ids in Booking and Availability Management Tools for Drupal 7
Same name and namespace in other branches
- 8 modules/bat_unit/bat_unit.module \bat_type_bundles_ids()
Helper function to easily get Bat Type bundles in an array for use in forms, etc.
Return value
array An array of type bundles keyed by bundle name and labels
File
- modules/
bat_unit/ bat_unit.module, line 1429
Code
function bat_type_bundles_ids() {
$type_bundles = array();
$bundles = bat_unit_get_type_bundles();
foreach ($bundles as $bundle) {
$type_bundles[$bundle->type] = $bundle->label;
}
return $type_bundles;
}