function uc_recurring_order_checkout_pane_message in UC Recurring Payments and Subscriptions 7.2
Checkout Pane callback function.
Used to display a form in the checkout process so that customers can select recurring/repeat option.
1 string reference to 'uc_recurring_order_checkout_pane_message'
- uc_recurring_product_uc_checkout_pane in modules/
uc_recurring_product/ uc_recurring_product.module - Implements hook_uc_checkout_pane().
File
- modules/
uc_recurring_product/ uc_recurring_product.module, line 319 - Add recurring payments/fees to a product. This is imlpemented through Ubercarts product features.
Code
function uc_recurring_order_checkout_pane_message($op, &$order, $form = NULL, &$form_state = NULL) {
switch ($op) {
case 'view':
$contents = NULL;
$message = variable_get('uc_recurring_product_checkout_pane_message');
if ($message && uc_recurring_product_get_recurring_products_in_order($order) != array()) {
$contents['recurring_product_message'] = array(
'#type' => 'markup',
'#theme' => 'uc_recurring_product_message',
'#message' => check_markup($message),
);
}
return array(
'description' => NULL,
'contents' => $contents,
);
case 'process':
// There is nothing to process as it is just a static message.
return TRUE;
case 'review':
// There is potential for an option to also display a message at review.
return NULL;
case 'settings':
$form['uc_recurring_product_checkout_pane_message'] = array(
'#type' => 'textarea',
'#title' => t('Recurring product message'),
'#default_value' => variable_get('uc_recurring_product_checkout_pane_message', ''),
'#description' => t('Enter the message to be displayed for the recurring product message pane.'),
);
return $form;
}
}