Retrieve a blocked IP address from the database.
$iid integer: The ID of the blocked IP address to retrieve.
The blocked IP address from the database as an array.
function blocked_ip_load($iid) {
return db_query("SELECT * FROM {blocked_ips} WHERE iid = :iid", array(
':iid' => $iid,
))
->fetchAssoc();
}