Check out date_repeat, which comes as a part of the date module.<div><br clear="all">Thanks,<br>Cameron<br><br>
<br><br><div class="gmail_quote">On Thu, May 12, 2011 at 01:45, Hai-Nam aka jcisio <span dir="ltr"><<a href="mailto:jcisio@gmail.com">jcisio@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Le 12/05/2011 08:32, Steven Jones a écrit :<br>
<div class="im">><br>
> I've looked at core, and it just uses some custom code each time to<br>
> generate a list of intervals and pop them in a select list. I've also<br>
> looked at other contrib modules and some of them just provide a<br>
> textfield and others provide a textfield for numeric input and a<br>
> select list for 'units'. There doesn't seem to be a catch-all solution<br>
> that I can find, and everyone seems to implementing intervals in a<br>
> slightly different way.<br>
><br>
<br>
</div>In one of my module, I use a select list with prefined values to quickly<br>
fill a textfield with a choice. Then user can modify this textfield if<br>
they don't like any of these predefined values.<br>
<br>
Take a look at<br>
<a href="http://drupal.org/project/hidden_comment" target="_blank">http://drupal.org/project/hidden_comment</a><br>
<font color="#888888"><br>
--<br>
Hai-Nam Nguyen aka jcisio<br>
<a href="http://jcisio.com" target="_blank">http://jcisio.com</a><br>
</font></blockquote></div><br></div>