You are here

function restrict_ip_value in Restrict IP 7

Function used to set or determine if the user's ip address is not whitelisted

5 calls to restrict_ip_value()
restrict_ip_init in ./restrict_ip.module
Implementation of hook_init()
restrict_ip_js_alter in ./restrict_ip.module
Implementation of hook_js_alter()
restrict_ip_preprocess_block in ./restrict_ip.module
Override of template_preprocess_block()
restrict_ip_preprocess_html in ./restrict_ip.module
Override of template_preprocess_html()
restrict_ip_preprocess_page in ./restrict_ip.module
Override of template_preprocess_page()

File

./restrict_ip.module, line 145

Code

function restrict_ip_value($block = FALSE) {
  $blocked =& drupal_static(__FUNCTION__);
  if (is_null($blocked)) {
    $blocked = FALSE;
  }
  if ($block) {
    $blocked = TRUE;
  }
  return $blocked;
}