You are here

function uc_select_day in Ubercart 5

Same name and namespace in other branches
  1. 6.2 uc_store/uc_store.module \uc_select_day()
  2. 7.3 uc_store/uc_store.module \uc_select_day()

Create a day select box for a form.

2 calls to uc_select_day()
uc_payment_method_cod_form in payment/uc_payment_pack/uc_payment_pack.module
uc_payment_pack_receive_check_form in payment/uc_payment_pack/uc_payment_pack.module
Receive a check for an order and put in a clear date.

File

uc_store/uc_store.module, line 2269
Contains global Ubercart functions and store administration functionality.

Code

function uc_select_day($title = NULL, $default = NULL) {
  $select = array(
    '#type' => 'select',
    '#title' => is_null($title) ? t('Day') : $title,
    '#options' => drupal_map_assoc(range(1, 31)),
    '#default_value' => is_null($default) ? 1 : $default,
  );
  return $select;
}