function ban_ip_load

Loads a banned IP address record from the database.

Parameters

int $iid: The ID of the banned IP address to retrieve.

Return value

array The banned IP address record from the database as an array.

File

drupal/core/modules/ban/ban.module, line 71
Allows to ban individual IP addresses.

Code

function ban_ip_load($iid) {
  return db_query("SELECT * FROM {ban_ip} WHERE iid = :iid", array(
    ':iid' => $iid,
  ))
    ->fetchAssoc();
}