[development] Time interval inputs

Cameron Eagans cweagans at gmail.com
Thu May 12 15:29:30 UTC 2011

Check out date_repeat, which comes as a part of the date module.


On Thu, May 12, 2011 at 01:45, Hai-Nam aka jcisio <jcisio at gmail.com> wrote:

> Le 12/05/2011 08:32, Steven Jones a écrit :
> >
> > I've looked at core, and it just uses some custom code each time to
> > generate a list of intervals and pop them in a select list. I've also
> > looked at other contrib modules and some of them just provide a
> > textfield and others provide a textfield for numeric input and a
> > select list for 'units'. There doesn't seem to be a catch-all solution
> > that I can find, and everyone seems to implementing intervals in a
> > slightly different way.
> >
> In one of my module, I use a select list with prefined values to quickly
> fill a textfield with a choice. Then user can modify this textfield if
> they don't like any of these predefined values.
> Take a look at
> http://drupal.org/project/hidden_comment
> --
> Hai-Nam Nguyen aka jcisio
> http://jcisio.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110512/6651ca56/attachment.html 

More information about the development mailing list