You are here

function uc_extra_fields_pane_ucxf_display_options in Extra Fields Checkout Pane 7

Same name and namespace in other branches
  1. 6.2 uc_extra_fields_pane.module \uc_extra_fields_pane_ucxf_display_options()

Implements hook_ucxf_display_options().

Parameters

ucxf_field $field:

Return value

array

File

./uc_extra_fields_pane.module, line 274
Module: uc_extra_fields_pane.module

Code

function uc_extra_fields_pane_ucxf_display_options($field) {
  $options = array(
    'checkout' => array(
      'title' => t('Checkout page'),
      'description' => t('Uncheck to hide the field on the checkout page. The field will still be added to the order, and will appear in the order confirmation as well. This setting only applies when the field type is %php or %constant.', array(
        '%php' => t('PHP string'),
        '%constant' => t('Constant'),
      )),
    ),
    'review' => array(
      'title' => t('Order review page'),
      'description' => t('The page where the order is reviewed by a customer before the order is submitted.'),
    ),
    'order' => array(
      'title' => t('Order view page'),
      'description' => t('The page where the details of the order can be viewed after the order is submitted.'),
    ),
  );
  if ($field instanceof UCXF_AddressField) {
    $options['uc_addresses'] = array(
      'title' => t('Address Book'),
      'description' => t('The page where the user has an overview of his/her addresses.'),
    );
  }
  return $options;
}