function bat_unit_bundle_load in Booking and Availability Management Tools for Drupal 7
Same name and namespace in other branches
- 8 modules/bat_unit/bat_unit.module \bat_unit_bundle_load()
Menu argument loader; Load a unit bundle by string.
Parameters
string $bundle: The machine-readable name of a unit bundle to load.
bool $reset: A boolean indicating whether the internal cache should be reset.
Return value
array|false A unit bundle array or FALSE if $bundle does not exist.
1 call to bat_unit_bundle_load()
- bat_unit_handler_unit_bundle_field::render in modules/
bat_unit/ views/ bat_unit_handler_unit_type_field.inc - Render the field.
File
- modules/
bat_unit/ bat_unit.module, line 789
Code
function bat_unit_bundle_load($bundle, $reset = FALSE) {
return bat_unit_get_bundles($bundle, $reset);
}