A client of mine wanted to set the expiry date of an invitation to never. Currently you only can choose some values between 1 and 60 days.

CommentFileSizeAuthor
#1 invite-653724.patch4.17 KBfuerst

Comments

fuerst’s picture

StatusFileSize
new4.17 KB

The attached patch allows to set the expiry date to never by setting the expiry value internally to 0. It takes care of checking expiration only for invitations which does not have the expiry date set to 0 - as you would expect. I hope, this patch is useful for someone else.

mattcasey’s picture

Thanks for the patch, although -1 would make more logical sense wouldn't it? I am surprised that Invite [still] requires an expiration. It seems like an unnecessary limit that is basically saying "You can invite anyone you want but after some arbitrary point, we won't give you credit."

technikh’s picture

Version: 6.x-2.x-dev » 7.x-4.x-dev
Issue summary: View changes

the 7.x version has a max of 365 days. can we also have an option to never expire?

Cheers,
TechNikh

Ever dreamed of styling your view, We have a solution for you. https://drupal.org/project/views_stylizer
Pick from hundreds of Slideshow plugins or create your own! https://twitter.com/drupalsauce

jacob.embree’s picture

Status: Active » Needs work
Issue tags: +Needs reroll