Took me along time to hunt down how to do this so figured I'd post an example here. Timeline module will render even if empty. This makes sense in MOST situations (but not all). Fortunately you can use the following to change this:

Write your own module and add the following:

/**
 * Implementation of hook_views_plugins_alter().
 */
function YOUMODULENAME_views_plugins_alter(&$plugins) {
  // Prevent the timeline module from displaying when empty
  $plugins['style']['timeline']['even empty'] = FALSE;
}

Comments

xamanu’s picture

Category: bug » feature
Status: Reviewed & tested by the community » Fixed

I'm not sure if this should go into regular documentation. But anyway, thanks for posting. This way the information is available.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.