You are here

function appointment_calendar_form in Appointment Calendar 7

Implements hook_form().

File

./appointment_calendar.module, line 111
Adds Appointment calendar filtering and displays Availability.

Code

function appointment_calendar_form($node, $form_state) {

  // Adds title in appointment calendar node.
  $type = node_type_get_type($node);
  $form['title'] = array(
    '#type' => 'textfield',
    '#title' => check_plain($type->title_label),
    '#default_value' => !empty($node->title) ? $node->title : '',
    '#required' => TRUE,
    '#weight' => -5,
  );
  return $form;
}