function bat_type_create 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_create()
Creates a Bat Type object.
Parameters
array $values: The properties for the new type bundle.
5 calls to bat_type_create()
- BatTypeUIController::hook_menu in modules/
bat_unit/ bat_type.admin.inc - Overrides hook_menu() defaults.
- bat_type_add_access in modules/
bat_unit/ bat_unit.module - Access callback: Checks whether the user has permission to add a type.
- bat_type_create_form_wrapper in modules/
bat_unit/ bat_type.admin.inc - Form callback wrapper: create a type.
- bat_type_handler_delete_link_field::render in modules/
bat_unit/ views/ bat_type_handler_delete_link_field.inc - Render the field.
- bat_type_handler_edit_link_field::render in modules/
bat_unit/ views/ bat_type_handler_edit_link_field.inc - Render the field.
1 string reference to 'bat_type_create'
- bat_unit_entity_info in modules/
bat_unit/ bat_unit.module - Implements hook_entity_info().
File
- modules/
bat_unit/ bat_unit.module, line 1579
Code
function bat_type_create($values = array()) {
return entity_get_controller('bat_type')
->create($values);
}