function clock_default_clock in Clock 7.2
Gets a clock object populated with default values.
Return value
A clock object with the default values.
1 call to clock_default_clock()
- clock_add_form in ./
clock.admin.inc - Form builder for the clock add form.
File
- ./
clock.module, line 502 - Display clocks on your site.
Code
function clock_default_clock() {
$clock = array(
'time_zone_type' => 'site',
'custom_time_zone' => 'UTC',
'date_type' => 'short',
'display' => '[clock:date]',
);
return (object) $clock;
}