Remove paypal button id from prices config pages
This commit is contained in:
@@ -18,9 +18,9 @@ function booking_price_admin()
|
||||
'booking_eventid' => t('Event ID'),
|
||||
'booking_price_descrip' => t('Description'),
|
||||
'booking_price' => t('Early-Bird Price'),
|
||||
'booking_buttonid' => t('Button ID'),
|
||||
//'booking_buttonid' => t('Button ID'),
|
||||
'booking_late_price' => t('Late Booking Price'),
|
||||
'booking_late_buttonid' => t('Late Booking Button ID'),
|
||||
//'booking_late_buttonid' => t('Late Booking Button ID'),
|
||||
'booking_depositonly' => t('Deposit Only'),
|
||||
'booking_edit' => t('Edit Price'),
|
||||
);
|
||||
@@ -36,9 +36,9 @@ function booking_price_admin()
|
||||
'booking_eventid' => $data->booking_eventid,
|
||||
'booking_price_descrip' => $data->booking_price_descrip,
|
||||
'booking_price' => $data->booking_price,
|
||||
'booking_buttonid' => $data->booking_buttonid,
|
||||
//'booking_buttonid' => $data->booking_buttonid,
|
||||
'booking_late_price' => $data->booking_late_price,
|
||||
'booking_late_buttonid' => $data->booking_late_buttonid,
|
||||
//'booking_late_buttonid' => $data->booking_late_buttonid,
|
||||
'booking_depositonly' => $data->booking_depositonly == 1 ? 'Yes' : 'No',
|
||||
'booking_edit' => l('Edit', t('admin/config/booking/prices/!pid/edit', array('!pid' => $data->pid))),
|
||||
);
|
||||
@@ -161,13 +161,14 @@ function booking_price_form($node, &$form_state, $create, $editid = 0)
|
||||
'#required' => TRUE,
|
||||
'#default_value' => !empty($data->booking_late_price) ? $data->booking_late_price : '',
|
||||
);
|
||||
/*
|
||||
$form['booking_buttonid'] = array (
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('The PayPal button ID. This setting is deprecated.'),
|
||||
'#size' => 20,
|
||||
'#maxlength' => 20,
|
||||
'#default_value' => !empty($data->booking_buttonid) ? $data->booking_buttonid : '',
|
||||
);
|
||||
);
|
||||
$form['booking_late_buttonid'] = array (
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('The PayPal button ID for late bookings. This setting is deprecated.'),
|
||||
@@ -175,7 +176,7 @@ function booking_price_form($node, &$form_state, $create, $editid = 0)
|
||||
'#maxlength' => 20,
|
||||
'#default_value' => !empty($data->booking_late_buttonid) ? $data->booking_late_buttonid : '',
|
||||
);
|
||||
|
||||
*/
|
||||
$form['booking_price_active'] = array(
|
||||
'#type' => 'checkbox',
|
||||
'#title' => t('Tick to make this price active for the current event.'),
|
||||
@@ -231,7 +232,7 @@ function booking_price_form_submit($form, &$form_state) {
|
||||
'booking_price' => $values['booking_price'],
|
||||
'booking_late_price' => $values['booking_late_price'],
|
||||
'booking_price_descrip' => $values['booking_price_descrip'],
|
||||
'booking_buttonid' => $values['booking_buttonid'],
|
||||
//'booking_buttonid' => $values['booking_buttonid'],
|
||||
'booking_price_active' => $values['booking_price_active'] == 1 ? 1 : 0,
|
||||
'booking_depositonly' => $values['booking_depositonly'] == 1 ? 1 : 0,
|
||||
))
|
||||
@@ -271,7 +272,7 @@ function booking_price_form_submit($form, &$form_state) {
|
||||
'booking_price' => $values['booking_price'],
|
||||
'booking_late_price' => $values['booking_late_price'],
|
||||
'booking_price_descrip' => $values['booking_price_descrip'],
|
||||
'booking_buttonid' => $values['booking_buttonid'],
|
||||
//'booking_buttonid' => $values['booking_buttonid'],
|
||||
'booking_price_active' => $values['booking_price_active'] == 1 ? 1 : 0,
|
||||
'booking_depositonly' => $values['booking_depositonly'] == 1 ? 1 : 0,
|
||||
))
|
||||
|
Reference in New Issue
Block a user