You are here

fullcalendar_plugin_display_page.inc in FullCalendar 7

Same filename and directory in other branches
  1. 6 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 (empty($this->view->result)) {
      $this->view->result[] = new stdClass();
      $this->view->empty_text = $this
        ->render_area('empty');
    }
    return parent::render();
  }

}

Classes

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