function uc_ajax_cart_get_messages in Ubercart AJAX Cart 6.2
2 calls to uc_ajax_cart_get_messages()
- uc_ajax_cart_settings_overview in ./
uc_ajax_cart.admin.inc - @file All admin functions
- _uc_ajax_cart_init in ./
uc_ajax_cart.module - Contains the initialization logic for uc_ajax_cart. Called upon by either hook_init() (for always-enabled ajax functionality) or hook_block (for ajax only when the block is present on the page).
File
- ./
uc_ajax_cart.module, line 257
Code
function uc_ajax_cart_get_messages() {
$defaults = array(
'ADD_MESSAGES' => array(
t('Adding product to cart...'),
),
'ADD_TITLE' => '',
'REMOVE_MESSAGES' => array(
t('Removing product from cart...'),
),
'REMOVE_TITLE' => '',
'UPDATE_MESSAGES' => array(
t('Updating cart...'),
),
'UPDATE_TITLE' => '',
'CART_OPERATION' => '',
);
$messages = variable_get('uc_ajax_cart_messages', array());
$messages += $defaults;
return $messages;
}