You are here

function _address_pane_data in Ubercart Addresses 6

Same name and namespace in other branches
  1. 5.2 uc_addresses_address_pane.inc \_address_pane_data()
  2. 5 uc_addresses_address_pane.inc \_address_pane_data()

Return data from an address pane by pane ID and the array key.

Parameters

$pane_id The id of the pane.:

$key The key used to access a value in the pane.:

Return value

The requested value or NULL if the key doesn't exist.

2 calls to _address_pane_data()
theme_uc_addresses_get_address_form in ./uc_addresses.module
Theme the add or edit address form.
uc_addresses_get_address_form_submit in ./uc_addresses.module
Handle the form submit for adding a new address or editing an existing address.

File

./uc_addresses_address_pane.inc, line 287
This file contains the callbacks for the default address panes and their corresponding helper functions.

Code

function _address_pane_data($pane_id, $key) {
  $panes = _address_pane_list();
  foreach ($panes as $pane) {
    if ($pane['id'] == $pane_id) {
      return $pane[$key];
    }
  }
}