empty node expiry patch

vannus - October 25, 2009 - 17:20
Project:Node Expire
Version:6.x-2.03
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

ive attached a patch to prevent 1970-1-1 coming up when expiry date has been left blank.
(quite annoying having to delete 1970-1-1 every time you amend a node that shouldnt expire)

ive not tested it with nodes that will expire yet! (i dont have cron access on my server yet)

AttachmentSize
node_expire.nodeapi.inc_.diff428 bytes

#1

vannus - October 25, 2009 - 17:35

#2

vannus - October 25, 2009 - 23:09

improvement - now handles empty default value when creating new node as well as node edits.
(disregard earlier patch/apply this patch to fresh 2.03 version)

AttachmentSize
node_expire.nodeapi.inc_.diff 547 bytes

#3

bomarmonk - October 26, 2009 - 06:24

Does yours work more effectively? Maybe you can help with this larger patch to get this module working with Drupal 6: http://drupal.org/node/546494

Thank you for your help.

#4

vannus - October 27, 2009 - 19:38
Status:needs review» closed

it works for me :)

thanks for mentioning that other one - ill close this now, and make any contributions to #546494: Disable node_expire completely for certain node types.

 
 

Drupal is a registered trademark of Dries Buytaert.