You are here

function httpbl_page_build in http:BL 7

Implements hook_page_build().

Adds a Project Honeypot link to the footer.

File

./httpbl.module, line 297
Implementation of http:BL for Drupal. It provides IP-based blacklisting through http:BL and allows linking to a honeypot.

Code

function httpbl_page_build(&$page) {
  if (variable_get('httpbl_footer', FALSE)) {
    $link = variable_get('httpbl_link', NULL);
    $word = variable_get('httpbl_word', 'randomness');
    $page['page_bottom']['httpbl'] = array(
      '#type' => 'markup',
      '#markup' => httpbl_honeylink($link, $word),
    );
  }
}