function clock_block_save in Clock 7
Same name and namespace in other branches
- 7.2 clock.module \clock_block_save()
Implements hook_block_save().
File
- ./
clock.module, line 139
Code
function clock_block_save($delta = '', $edit = array()) {
if ($delta == 'clock') {
// If the time zone type is 'Custom time zone' store the name of the custom
// time zone in $time_zone. Otherwise, store the value of the time zone
// type.
$time_zone = $edit['time_zone_type'] == 4 ? $edit['time_zone_custom'] : $edit['time_zone_type'];
variable_set('clock_time_zone', $time_zone);
variable_set('clock_date_type', $edit['date_type']);
variable_set('clock_update', $edit['update']);
return;
}
}