function uc_cart_cart_settings_overview in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_cart/uc_cart.module \uc_cart_cart_settings_overview()
Display an overview of the cart settings.
1 string reference to 'uc_cart_cart_settings_overview'
- uc_cart_menu in uc_cart/
uc_cart.module - Implements hook_menu().
File
- uc_cart/
uc_cart.admin.inc, line 11 - Cart administration menu items.
Code
function uc_cart_cart_settings_overview() {
// Load the form summaries for pages beneath this path.
$summaries = summarize_child_form_pages('admin/store/settings/cart/edit');
// Build the block summary since it comes from another form.
if (variable_get('uc_cart_show_help_text', FALSE)) {
$help_text = t('Help text is shown in block:') . '<br /><i>' . variable_get('uc_cart_help_text', t('Click title to display cart contents.')) . '</i>';
}
else {
$help_text = t('Help text is not shown in block.');
}
$summaries[] = array(
'path' => url('admin/store/settings/cart/edit/block'),
'href' => 'admin/store/settings/cart/edit/block',
'title' => t('Cart block'),
'items' => array(
t('Cart block is !option when empty.', array(
'!option' => variable_get('uc_cart_block_empty_hide', FALSE) ? t('hidden') : t('shown'),
)),
t('Cart block is !option by default.', array(
'!option' => variable_get('uc_cart_expanded', FALSE) ? t('expanded') : t('collapsed'),
)),
$help_text,
),
);
// Theme it all up in a summaries overview.
return theme('summary_overview', $summaries);
}