You are here

function fullcalendar_plugin_display_page::render in FullCalendar 6

Same name and namespace in other branches
  1. 7 fullcalendar_plugin_display_page.inc \fullcalendar_plugin_display_page::render()

File

./fullcalendar_plugin_display_page.inc, line 12
Contains the view display plugin.

Class

fullcalendar_plugin_display_page
Forces the calendar to display a fake node if none are returned.

Code

function render() {
  if ($this->view->total_rows == 0) {
    $this->view->result[] = new stdClass();
    $this->view->empty = $this
      ->render_textarea('empty');
  }
  return parent::render();
}