You are here

function user_block_save in Drupal 7

Implements hook_block_save().

File

modules/user/user.module, line 1416
Enables the user registration and login system.

Code

function user_block_save($delta = '', $edit = array()) {
  global $user;
  switch ($delta) {
    case 'new':
      variable_set('user_block_whois_new_count', $edit['user_block_whois_new_count']);
      break;
    case 'online':
      variable_set('user_block_seconds_online', $edit['user_block_seconds_online']);
      variable_set('user_block_max_list_count', $edit['user_block_max_list_count']);
      break;
  }
}