You are here

function merci_template_form_alter in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6

Implementation of hook_form_alter().

File

modules/merci_template/merci_template.module, line 28
merci_template functions

Code

function merci_template_form_alter(&$form, $form_state, $form_id) {
  switch ($form_id) {
    case 'merci_reservation_template_node_form':
      unset($form['body_field']['format']);
      $form['body_field']['body'] = array(
        '#type' => 'select',
        '#title' => t('Copy Recent Reservation'),
        '#options' => merci_template_recent_reservations_options(),
        '#default_value' => '',
      );
      break;
  }

  // switch
}