function user_block_save

Implements hook_block_save().

File

modules/user/user.module, line 1425

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.