Download & Extend

Can't preset duration value with php code

Project:Duration
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hello.

I can't preset duration value with php code.

The hint in the interface says:

return array(
0 => array('iso8601' => value for iso8601, 'approx_seconds' => value for approx_seconds),
// You'll usually want to stop here. Provide more values
// if you want your 'default value' to be multi-valued:
1 => array('iso8601' => value for iso8601, 'approx_seconds' => value for approx_seconds),
2 => ...
);

And it does not work.

How would a proper array look to preset the value?