Browse Source

hide some form fields

9.x-1.0
Paul Pound 8 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_lastname' => $request['DeliveryAddress']['Surname'],
'patron_type' => $request['DeliveryAddress']['patron_type'], 'patron_type' => $request['DeliveryAddress']['patron_type'],
'patron_department' => $request['DeliveryAddress']['Department'], 'patron_department' => $request['DeliveryAddress']['Department'],
'patron_email' => $request['DeliveryAddress']['DeliveryAddress'], //'patron_email' => $request['DeliveryAddress']['DeliveryAddress'],
'notes' => isset($request['DeliveryAddress']['notes']) ? $request['DeliveryAddress']['notes'] : '', 'notes' => isset($request['DeliveryAddress']['notes']) ? $request['DeliveryAddress']['notes'] : '',
'genre' => isset($request['BibliographicInfo']['Genre']) ? $request['BibliographicInfo']['Genre'] : '', 'genre' => isset($request['BibliographicInfo']['Genre']) ? $request['BibliographicInfo']['Genre'] : '',
'author' => isset($request['BibliographicInfo']['Author']) ? $request['BibliographicInfo']['Author'] : '', '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, '#options' => $departments,
'#required' => TRUE, '#required' => TRUE,
); );
$form['DeliveryAddress'] = array( /*$form['DeliveryAddress'] = array(
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t('Your Email'), '#title' => t('Your Email'),
'#size' => 50, '#size' => 50,
'#required' => TRUE, '#required' => TRUE,
); ); */
$form['InstitutionName'] = array( $form['InstitutionName'] = array(
'#type' => 'textfield', '#type' => 'hidden',
'#title' => t('Name of Institution'), '#title' => t('Name of Institution'),
'#size' => 50, '#size' => 50,
'#default_value' => 'University of Prince Edward Island', '#default_value' => 'University of Prince Edward Island',
'#required' => TRUE, '#required' => TRUE,
); );
$form['LibraryName'] = array( $form['LibraryName'] = array(
'#type' => 'textfield', '#type' => 'hidden',
'#title' => t('Name of Library'), '#title' => t('Name of Library'),
'#size' => 50, '#size' => 50,
'#default_value' => 'Robertson Library', '#default_value' => 'Robertson Library',

Loading…
Cancel
Save