function _get_ip_address_from_comment in CloudFlare 6
Same name and namespace in other branches
- 7 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()
File
- ./
cloudflare.module, line 474
Code
function _get_ip_address_from_comment($cid) {
$comment = db_fetch_object(db_query('SELECT hostname FROM {comments} WHERE cid = %d', $cid));
return $comment->hostname;
}