You are here

function _get_ip_address_from_comment in CloudFlare 7

Same name and namespace in other branches
  1. 6 cloudflare.module \_get_ip_address_from_comment()

Lookup the hostname/IP Address of the comment using the comment id.

2 calls to _get_ip_address_from_comment()
_cloudflare_ban_comment in ./cloudflare.module
_cloudflare_whitelist_comment in ./cloudflare.module

File

./cloudflare.module, line 492

Code

function _get_ip_address_from_comment($cid) {
  $comment = comment_load($cid);
  return $comment->hostname;
}