You are here

ip_anon.module in IP Anonymize 7

Same filename and directory in other branches
  1. 8 ip_anon.module
  2. 5 ip_anon.module
  3. 6 ip_anon.module

Implements an IP address retention policy.

File

ip_anon.module
View source
<?php

/**
 * @file
 * Implements an IP address retention policy.
 */

/**
 * Implements hook_cron().
 */
function ip_anon_cron() {
  if (variable_get('ip_anon_policy', 0)) {
    module_load_include('inc', 'ip_anon');
    ip_anon_scrub();
  }
}

/**
 * Implements hook_menu().
 */
function ip_anon_menu() {
  $items = array();
  $items['admin/config/people/ip_anon'] = array(
    'title' => 'IP address anonymization',
    'description' => 'Configure the IP address retention policy.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'ip_anon_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'ip_anon.inc',
  );
  return $items;
}

Functions

Namesort descending Description
ip_anon_cron Implements hook_cron().
ip_anon_menu Implements hook_menu().