the current data handler is extremely close, but always perform REQUEST_TIME - $value or some such. Instead format_interval($value).

Comments

boombatower’s picture

Assigned: Unassigned » boombatower
Status: Active » Needs review
StatusFileSize
new1.84 KB
dawehner’s picture


+      '#default_value' => isset($this->options['granularity']) ? $this->options['granularity'] : 2,

This line is not really needed :)
$this->options['granularity'] will be always filled up by the option_definition.

The rest looks fine. Needs manual testing.

boombatower’s picture

Figured. I was following the pattern I saw in date and what not...those should probably all be changed?

dawehner’s picture

It's not such important.

Perhaps long ago views didn't autofilled the default values.

boombatower’s picture

StatusFileSize
new1.81 KB

Remove isset.

dawehner’s picture

Assigned: boombatower » merlinofchaos

Assign for earl whether it should be commited to 7.x-3.x, or also for 6.x-3.x

boombatower’s picture

Status: Needs review » Reviewed & tested by the community

Assume that means reviewed then.

merlinofchaos’s picture

This should go to 6.x-3.x as well as 7.x -- doesn't quite apply. dereine, feel free to commit to both

dawehner’s picture

Status: Reviewed & tested by the community » Fixed

Commited to both branches.

perhaps git commit --amend is a bad tool :) Never use it

a) on non-local commits
b) you commited something else in the meantime.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.