Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
First off, great module. I upgraded from another system and this one seems to be very effective out of the box.
One issue that I'm having regards to enquiries... where do they go? I can't find them in my site, and I don't get any emails when I go through the process.
Thanks for any direction.
Comments
Comment #1
coloryan CreditAttribution: 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 CreditAttribution: arne.olafson commentedHow did you add the phone to the form?
Comment #3
lilbebel CreditAttribution: 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 CreditAttribution: 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.