function appointment_calendar_check_availability_form in Appointment Calendar 7
Implements callback to check availability.
1 string reference to 'appointment_calendar_check_availability_form'
- appointment_calendar_form_alter in ./
appointment_calendar.module - Implements hook_form_alter().
File
- ./
appointment_calendar.module, line 274 - Adds Appointment calendar filtering and displays Availability.
Code
function appointment_calendar_check_availability_form($form, &$form_state) {
// Callback to check Availability.
global $base_url;
$selected_date = explode('T', $form_state['values']['appointment_date'][LANGUAGE_NONE][0]['value2']);
$url = $base_url . '/appointcal?date=' . $selected_date[0];
$var = '<div id="check-availability"><iframe id="iid" style="overflow: hidden;" width=300 src= "' . $url . '" ></iframe></div>';
return $var;
}