function _address_pane_data in Ubercart Addresses 5.2
Same name and namespace in other branches
- 5 uc_addresses_address_pane.inc \_address_pane_data()
- 6 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. If $view is 'edit' run update database function, if 'new' or 'add', run insert database function.
File
- ./
uc_addresses_address_pane.inc, line 288 - 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];
}
}
}