function _uc_ajax_defaults in Ubercart 7.3
Retrieve the default ajax behaviors for a target form.
Parameters
$target_form: The form whose default behaviors are to be retrieved.
Return value
The array of default behaviors for the form.
3 calls to _uc_ajax_defaults()
- UbercartAjaxTestCase::testCheckoutAjax in uc_store/
tests/ uc_ajax.test - uc_ajax_admin_form in uc_ajax_admin/
uc_ajax_admin.module - Administration form for uc_ajax.
- uc_ajax_process_form in uc_store/
includes/ uc_ajax_attach.inc - Form process callback to allow multiple Ajax callbacks on form elements.
File
- uc_store/
includes/ uc_ajax_attach.inc, line 219 - Contains logic to aid in attaching multiple ajax behaviors to form elements on the checkout and order-edit forms.
Code
function _uc_ajax_defaults($target_form) {
switch ($target_form) {
case 'checkout':
$quotes_defaults = drupal_map_assoc(array(
'payment-pane',
'quotes-pane',
));
return array(
'panes][delivery][address][delivery_country' => $quotes_defaults,
'panes][delivery][address][delivery_postal_code' => $quotes_defaults,
'panes][delivery][select_address' => $quotes_defaults,
'panes][billing][address][billing_country' => array(
'payment-pane' => 'payment-pane',
),
);
default:
return array();
}
}