You are here

public static function UCXF_FieldList::getAllAddressFields in Extra Fields Checkout Pane 7

Same name and namespace in other branches
  1. 6.2 class/UCXF_FieldList.class.php \UCXF_FieldList::getAllAddressFields()

Get all available address fields @access public @static

Return value

array

10 calls to UCXF_FieldList::getAllAddressFields()
UCXFApiTestCase::testUCXF_FieldList in ./uc_extra_fields_pane.test
Test if UCXF_FieldList behaves as excepted.
UCXFCheckoutTestCase::testSanitizing in ./uc_extra_fields_pane.test
Test if field values are properly sanitized.
UCXFOrderTestCase::testOrder in ./uc_extra_fields_pane.test
Test the order administration.
UCXFTestCase::checkout in ./uc_extra_fields_pane.test
Overrides UbercartTestHelper::checkout().
uc_extra_fields_pane_form_uc_store_address_fields_form_alter in ./uc_extra_fields_pane.module
Implements hook_form_FORM_ID_alter() for uc_store_address_fields_form().

... See full list

File

class/UCXF_FieldList.class.php, line 156
Contains the UCXF_FieldList class.

Class

UCXF_FieldList
This class is used to keep track of all loaded fields in one request. It's also used as a central place to request fields.

Code

public static function getAllAddressFields() {
  $fields = self::getFieldsFromPane(array(
    'extra_delivery',
    'extra_billing',
  ));
  uasort($fields, array(
    'UCXF_FieldList',
    'sort',
  ));
  return $fields;
}