function visitors_block_user_ip in Visitors 7.2
Same name and namespace in other branches
- 8 visitors.block.inc \visitors_block_user_ip()
- 7 visitors.block.inc \visitors_block_user_ip()
- 7.0 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 137 - Display current visitor block.
Code
function visitors_block_user_ip(&$list_items) {
if (variable_get('visitors_user_ip', 1)) {
$list_items[] = sprintf('%s: %s', t('Your IP'), visitors_get_ip());
}
}