function user_block_save

Implements hook_block_save().

File

drupal/core/modules/user/user.module, line 699
Enables the user registration and login system.

Code

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;
  }
}