Don't show "Group calendar" link for groups with no events

taite11 - November 29, 2008 - 06:15
Project:OG Calendar
Version:6.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Can the "Group calendar" link on the "Group details" block be set to automatically not show if there are no events?

#1

paulbooker - January 9, 2009 - 14:46
Version:6.x-1.0-beta1» 6.x-1.x-dev

#2

paulbooker - January 9, 2009 - 15:02

I'll not implement this feature as i think it is best to have the link on the page permanently .

However you will need to add some more logic to ..

function og_calendar_og_create_links($group) {
$links = array();
$links[] = l(t('Group calendar'), "og_calendar/$group->nid");
return $links;
}

Best, Paul

 
 

Drupal is a registered trademark of Dries Buytaert.