You are here

function visitors_block_user_ip in Visitors 7.0

Same name and namespace in other branches
  1. 8 visitors.block.inc \visitors_block_user_ip()
  2. 7.2 visitors.block.inc \visitors_block_user_ip()
  3. 7 visitors.block.inc \visitors_block_user_ip()

Display user ip to visitors block.

Parameters

$list_items: array associative array of variables, use for theme function

1 call to visitors_block_user_ip()
theme_visitors_block_view in ./visitors.block.inc
Implement a theme function for block output.

File

./visitors.block.inc, line 134
Display current visitor block.

Code

function visitors_block_user_ip(&$list_items) {
  if (variable_get('visitors_user_ip', 1)) {
    $list_items[] = t('Your IP: %user_ip', array(
      '%user_ip' => visitors_get_ip(),
    ));
  }
}