You are here

function restrict_ip_preprocess_block in Restrict IP 7

Same name and namespace in other branches
  1. 6 restrict_ip.module \restrict_ip_preprocess_block()

Override of template_preprocess_block()

This function removes all data from blocks for users whose accounts have been blocked, preventing the blocks from being rendered

File

./restrict_ip.module, line 241

Code

function restrict_ip_preprocess_block(&$items) {
  if (restrict_ip_value()) {
    unset($items['elements']);
    unset($items['title_prefix']);
    unset($items['title_suffix']);
  }
}