You are here

public function views_handler_area_view::render in Views (for Drupal 7) 7.3

Render the area.

Overrides views_handler_area::render

File

handlers/views_handler_area_view.inc, line 55
Definition of views_handler_area_view.

Class

views_handler_area_view
Views area handlers. Insert a view inside of an area.

Code

public function render($empty = FALSE) {
  if ($view = $this
    ->loadView()) {
    if (!empty($this->options['inherit_arguments']) && !empty($this->view->args)) {
      return $view
        ->preview(NULL, $this->view->args);
    }
    else {
      return $view
        ->preview(NULL);
    }
  }
  return '';
}