Active
Project:
Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2013 at 22:01 UTC
Updated:
9 Jun 2013 at 21:51 UTC
Comments
Comment #1
coloryan commentedOkay, after some more working with it I understand that it sends out an email notification. I've been able to add "phone" to the form and email, but I'm having a hard time getting the start_date and end_date to the email. Any suggestions?
Comment #2
arne.olafson commentedHow did you add the phone to the form?
Comment #3
lilbebel commentedIs there a way to add new fields (such as phone number) and make them mandatory? Also, the enquiry form is missing the option to enter the number of people in the group. I'd like to add this field to it and make it mandatory along with a phone field.
Many thanks for any help.
M
Comment #4
lilbebel commentedOk, I figured it out. In order to make an enquiry form field mandatory, simply add
#required' => TRUE,to the form field in rooms_booking_manager.moduleFor example:
In order to add a new field to the form, you need to add a new variable in rooms_booking_manager.module, e.g.
$variables['customer_phone'] = t('Phone:') . ' ' . $form_state['values']['customer_phone'];In the above example, I added a form phone field.
Then, you need to create an array (is this the right term???) in rooms_booking_manager.module too, e.g.
Hope that helps. Sorry if my terminology is off. I'm only getting to grips with PHP.