You are here

function clock_add in Clock 7.2

Adds a clock.

Parameters

$clock: A clock object as returned by clock_info().

1 call to clock_add()
clock_add_form_submit in ./clock.admin.inc
Form submission handler for clock_add_form().

File

./clock.module, line 400
Display clocks on your site.

Code

function clock_add($clock) {
  $info = array(
    'time_zone_type' => $clock->time_zone_type,
    'custom_time_zone' => $clock->custom_time_zone,
    'date_type' => $clock->date_type,
    'display' => $clock->display,
    'weight' => $clock->weight,
  );
  drupal_write_record('clock_settings', $info);
}