function uc_ajax_cart_preprocess_block in Ubercart AJAX Cart 7.2
Same name and namespace in other branches
- 6.2 uc_ajax_cart.module \uc_ajax_cart_preprocess_block()
Implements hook_prepreocess_block().
Sets right block title markup when title is overriden by user.
File
- ./
uc_ajax_cart.module, line 505
Code
function uc_ajax_cart_preprocess_block(&$vars, $hook) {
if ($hook == 'block' && $vars['block']->module == 'uc_ajax_cart' && !empty($vars['block']->title) && $vars['block']->title != '<none>') {
$vars['block']->subject = _theme_uc_ajax_cart_block_header($vars['block']->title);
}
}