Implements hook_block_save().
function user_block_save($delta = '', $edit = array()) {
global $user;
$config = config('user.block');
switch ($delta) {
case 'new':
$config
->set('whois_new_count', $edit['user_block_whois_new_count'])
->save();
break;
case 'online':
$config
->set('seconds_online', $edit['user_block_seconds_online'])
->save();
$config
->set('max_list_count', $edit['user_block_max_list_count'])
->save();
break;
}
}