commerce_cart_handler_area_empty_text.inc in Commerce Core 7
File
modules/cart/includes/views/handlers/commerce_cart_handler_area_empty_text.incView source
<?php
/**
* Area handler to display the empty text message for shopping carts.
*/
class commerce_cart_handler_area_empty_text extends views_handler_area {
function render($empty = FALSE) {
// Empty shopping cart Views pages (and any variant of) will output the
// theme for empty shopping cart pages.
if ($this->view->display_handler instanceof views_plugin_display_page) {
$theme_hook = 'commerce_cart_empty_page';
}
else {
$theme_hook = 'commerce_cart_empty_block';
}
return theme($theme_hook);
}
}
Classes
Name | Description |
---|---|
commerce_cart_handler_area_empty_text | Area handler to display the empty text message for shopping carts. |