use og's og_is_group_type()

rcourtna - December 2, 2007 - 21:21
Project:OG Calendar
Version:5.x-1.1
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed
Description

rather than getting og types via "variable_get('og_node_types', array('og'))" and looping through the results, use og's og_is_group_type() function.

Removes a few lines of code. Patch attached.

AttachmentSize
og_calendar_grouptype.patch1.07 KB

#1

Darren Oh - December 2, 2007 - 22:58
Status:patch (reviewed & tested by the community)» patch (code needs work)

Patch failed to apply. Patches should be based on the development version.

#2

rcourtna - December 4, 2007 - 22:33

sorry. Attached is applied against HEAD (Revision 1.10.2.8) of Drupal-5 branch.

AttachmentSize
og_calendar.module.patch887 bytes

#3

gracearoha - December 16, 2007 - 10:19

sorry to be a bonehead, but what exactly does this patch do?

#4

Darren Oh - December 17, 2007 - 15:34
Status:patch (code needs work)» fixed

Fixed in CVS commit 91697.

#5

Anonymous - December 31, 2007 - 15:45
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.