function hook_rooms_create_line_item_alter in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Allows you to change the line item before it is added to the cart - this gives lots of flexibility to add information to a line item or change the label.
Parameters
$line_item:
array $context:
1 invocation of hook_rooms_create_line_item_alter()
- rooms_create_line_item in modules/
rooms_booking_manager/ rooms_booking_manager.commerce.inc - Creates a commerce line item related to a booking.
File
- modules/
rooms_booking_manager/ rooms_booking_manager.api.php, line 41 - This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.
Code
function hook_rooms_create_line_item_alter(&$line_item, $context) {
// No example.
}