You are here

function bat_booking_type_load in Booking and Availability Management Tools for Drupal 7

Same name and namespace in other branches
  1. 8 modules/bat_booking/bat_booking.module \bat_booking_type_load()

Menu argument loader; Load a booking type by string.

Parameters

string $type: The machine-readable name of a booking type to load.

bool $reset: A boolean indicating whether the internal cache should be reset.

Return value

array|false A booking type array or FALSE if $type does not exist.

3 calls to bat_booking_type_load()
BatBooking::defaultLabel in modules/bat_booking/bat_booking.module
Defines the entity label if the 'entity_class_label' callback is used.
BatBookingController::save in modules/bat_booking/bat_booking.module
Implements EntityAPIControllerInterface.
BatBookingUIController::overviewTableRow in modules/bat_booking/bat_booking.admin.inc
Overrides overviewTableRow() defaults.

File

modules/bat_booking/bat_booking.module, line 417

Code

function bat_booking_type_load($type, $reset = FALSE) {
  return bat_booking_get_types($type, $reset);
}