Browse Source

hide some form fields

9.x-1.0
Paul Pound 7 years ago
parent
commit
f5aa40907f
  1. 2
      includes/db.inc
  2. 9
      includes/form.inc

2
includes/db.inc

@ -23,7 +23,7 @@ function upei_roblib_ill_log_request($request, $response) {
'patron_lastname' => $request['DeliveryAddress']['Surname'],
'patron_type' => $request['DeliveryAddress']['patron_type'],
'patron_department' => $request['DeliveryAddress']['Department'],
'patron_email' => $request['DeliveryAddress']['DeliveryAddress'],
//'patron_email' => $request['DeliveryAddress']['DeliveryAddress'],
'notes' => isset($request['DeliveryAddress']['notes']) ? $request['DeliveryAddress']['notes'] : '',
'genre' => isset($request['BibliographicInfo']['Genre']) ? $request['BibliographicInfo']['Genre'] : '',
'author' => isset($request['BibliographicInfo']['Author']) ? $request['BibliographicInfo']['Author'] : '',

9
includes/form.inc

@ -195,22 +195,21 @@ function upei_roblib_ill_auth_form($form, &$form_state) {
'#options' => $departments,
'#required' => TRUE,
);
$form['DeliveryAddress'] = array(
/*$form['DeliveryAddress'] = array(
'#type' => 'textfield',
'#title' => t('Your Email'),
'#size' => 50,
'#required' => TRUE,
);
); */
$form['InstitutionName'] = array(
'#type' => 'textfield',
'#type' => 'hidden',
'#title' => t('Name of Institution'),
'#size' => 50,
'#default_value' => 'University of Prince Edward Island',
'#required' => TRUE,
);
$form['LibraryName'] = array(
'#type' => 'textfield',
'#type' => 'hidden',
'#title' => t('Name of Library'),
'#size' => 50,
'#default_value' => 'Robertson Library',

Loading…
Cancel
Save