Error message
You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).function user_block_save
Implements hook_block_save().
File
-
modules/
user/ user.module, line 1430
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.