/[drupal]/contributions/modules/duration/duration.module
ViewVC logotype

Log of /contributions/modules/duration/duration.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Oct 8 06:36:24 2008 UTC (13 months, 2 weeks ago) by jpetso
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, DRUPAL-6--1-0-RC2, HEAD
Changes since 1.11: +32 -1 lines
Diff to previous 1.11
Make formatters work in views by providing a custom field handler
that loads the Duration object (which CCK's default handler does not).

Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jul 17 17:25:47 2008 UTC (16 months, 1 week ago) by jpetso
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-RC1
Changes since 1.10: +2 -2 lines
Diff to previous 1.10
Add missing end quote to the formatter description string.

Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Tue May 27 02:00:22 2008 UTC (18 months ago) by jpetso
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9
More robust default values.

Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Tue May 27 01:47:46 2008 UTC (18 months ago) by jpetso
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8
* Have a lower-case API even for the object, like Views 2.
  Looks much more natural this way, too.
* Separate conversion factors from general metrics properties
  and make it possible for an object user to change them.

Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Apr 30 10:53:01 2008 UTC (18 months, 3 weeks ago) by jpetso
Branch: MAIN
CVS Tags: DRUPAL-6--0-9
Changes since 1.7: +120 -28 lines
Diff to previous 1.7
Fix a couple of bugs related to the months/weeks conflict, and introduce
a settings form for the duration_combo widget. I'd consider this widget
relatively complete now.

Still on the wishlist: a widget using the duration_select element.

Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Apr 30 08:25:52 2008 UTC (18 months, 4 weeks ago) by jpetso
Branch: MAIN
Changes since 1.6: +1 -72 lines
Diff to previous 1.6
Time to get rid of unused code.

Revision 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Apr 29 17:18:58 2008 UTC (18 months, 4 weeks ago) by jpetso
Branch: MAIN
Changes since 1.5: +17 -5 lines
Diff to previous 1.5
* Add a 'default' database value to both columns.
* Don't consider a zero duration empty, as 0 seconds might actually
  be used for something. So content_is_empty() only returns TRUE for
  fields that haven't been initialized at all yet, and the 'required'
  checkbox in the field settings still requires values >= 0.
  (For the duration_combo widget, there is at the moment no possibility
  to specify an empty duration.)

Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Apr 29 16:34:37 2008 UTC (18 months, 4 weeks ago) by jpetso
Branch: MAIN
Changes since 1.4: +58 -43 lines
Diff to previous 1.4
Yay, works now. Everything else is minor stuff like more widget options
or patches to CCK (which is not friendly to objects as submit values).

Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Apr 28 19:45:06 2008 UTC (18 months, 4 weeks ago) by jpetso
Branch: MAIN
Changes since 1.3: +197 -140 lines
Diff to previous 1.3
A first stab at a CCK field for durations.
Doesn't really work with a current CCK... nearly worked with an older one.

Revision 1.3
Sat Apr 26 23:16:47 2008 UTC (19 months ago) by jpetso
Branch: MAIN
Changes since 1.2: +1 -1 lines
FILE REMOVED
So, what happens if jpetso has a lot of work to do and should really
get the important stuff done first?

Right, he works on making the unimportant stuff perfect, including
a complete rework of the Duration API - which is now split into a real
(ISO compatible, highly reusable) duration object and a set of
(new) formatter functions. Plus some further rework to make the elements
rock a bit more, too.

Frickin' cool, no? ...well, not entirely:
- Still no CCK integration (although the formatter functions will
  make it easy to write some fine formatters), and, of course,
- More important work still left behind :P

But both of those will work out in the end, I presume.

Revision 1.2 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Mar 22 01:18:58 2008 UTC (20 months ago) by jpetso
Branch: MAIN
CVS Tags: DRUPAL-6--0-1
Changes since 1.1: +19 -7 lines
Diff to previous 1.1
* Revert also the standalone metric names to lower-case, it just looks better.
* When there's only one metrics option for the value/metric combo,
  display the metric as "fixed" item instead of a dropdown box.

Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Mar 22 01:05:44 2008 UTC (20 months ago) by jpetso
Branch: MAIN
Initial commit of the duration element module.

It's essentially a cleaned-up version of the duration element that I had
done as private element for the Temporary Invitation module, and now also
ported to Drupal 6, extended with a second "style" (fixed options only)
and most importantly, a sane data structure that will allow this to
be used by other people and later also as a CCK field.

(There's not much missing for a simple CCK field, but I don't feel like
doing that at the moment.)

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.2