function rooms_booking_manager_menu_title_callback in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Given a title argument from a hook_menu() the function returns related variable.
Parameters
$string - title argument defined via hook_menu().:
Return value
string
1 string reference to 'rooms_booking_manager_menu_title_callback'
- rooms_booking_manager_menu in modules/
rooms_booking_manager/ rooms_booking_manager.module - Implements hook_menu().
File
- modules/
rooms_booking_manager/ rooms_booking_manager.module, line 3291 - Rooms Booking Manager brings together all the pieces required to find a room and book it - including the DrupalCommerce integration
Code
function rooms_booking_manager_menu_title_callback($argument) {
switch ($argument) {
case 'booking':
return variable_get_value('rooms_booking_manager_create_your_booking');
case 'bookings':
return variable_get_value('rooms_booking_manager_review_your_reservation');
case 'select_your_stay':
return variable_get_value('rooms_booking_manager_select_your_stay');
}
}