Loads a banned IP address record from the database.
int $iid: The ID of the banned IP address to retrieve.
array The banned IP address record from the database as an array.
function ban_ip_load($iid) {
return db_query("SELECT * FROM {ban_ip} WHERE iid = :iid", array(
':iid' => $iid,
))
->fetchAssoc();
}