You are here

function commerce_cart_handler_area_empty_text::render in Commerce Core 7

Render the area.

Overrides views_handler_area::render

File

modules/cart/includes/views/handlers/commerce_cart_handler_area_empty_text.inc, line 8

Class

commerce_cart_handler_area_empty_text
Area handler to display the empty text message for shopping carts.

Code

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);
}