Closed (fixed)
Project:
Timeline
Version:
6.x-3.x-dev
Component:
User interface
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2012 at 17:34 UTC
Updated:
3 Mar 2012 at 22:10 UTC
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
Comment #1
xamanu commentedI'm not sure if this should go into regular documentation. But anyway, thanks for posting. This way the information is available.