uc_address_field_enabled

Versions
5 – 6
uc_address_field_enabled($field)

Return TRUE if a field is enabled.

▾ 4 functions call uc_address_field_enabled()

uc_checkout_pane_billing in contributions/ubercart/uc_cart/uc_cart_checkout_pane.inc
Get the billing information.
uc_checkout_pane_delivery in contributions/ubercart/uc_cart/uc_cart_checkout_pane.inc
Get the delivery information.
uc_order_pane_bill_to in contributions/ubercart/uc_order/uc_order_order_pane.inc
Handle the "Bill to" order pane.
uc_order_pane_ship_to in contributions/ubercart/uc_order/uc_order_order_pane.inc
Handle the "Ship to" order pane.

Code

contributions/ubercart/uc_store/uc_store.module, line 2133

<?php
function uc_address_field_enabled($field) {
  $fields = variable_get('uc_address_fields', drupal_map_assoc(array('first_name', 'last_name', 'phone', 'company', 'street1', 'street2', 'city', 'zone', 'postal_code', 'country')));

  if (!isset($fields[$field])) {
    return FALSE;
  }
  else {
    return TRUE;
  }
}
?>

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.