You are here

fullcalendar_plugin_display_page.inc in FullCalendar 6

Same filename and directory in other branches
  1. 7 fullcalendar_plugin_display_page.inc

Contains the view display plugin.

File

fullcalendar_plugin_display_page.inc
View source
<?php

/**
 * @file
 * Contains the view display plugin.
 */

/**
 * Forces the calendar to display a fake node if none are returned.
 */
class fullcalendar_plugin_display_page extends views_plugin_display_page {
  function render() {
    if ($this->view->total_rows == 0) {
      $this->view->result[] = new stdClass();
      $this->view->empty = $this
        ->render_textarea('empty');
    }
    return parent::render();
  }

}

Classes

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