You are here

function countdown_block_save in Countdown 7

Implement hook_block_save().

File

./countdown.module, line 132
Count to, or from, a specified date and display the output in a block

Code

function countdown_block_save($delta = '', $edit = array()) {
  if ($delta == 0) {
    variable_set('countdown_event_name', $edit['countdown_event_name']);
    variable_set('countdown_url', $edit['countdown_url']);
    variable_set('countdown_accuracy', $edit['countdown_accuracy']);
    variable_set('countdown_timestamp', mktime((int) $edit['hour'], (int) $edit['min'], (int) $edit['sec'], (int) $edit['month'], (int) $edit['day'], (int) $edit['year']));
  }
}