ip_anon.module in IP Anonymize 7
Same filename and directory in other branches
Implements an IP address retention policy.
File
ip_anon.moduleView 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
Name | Description |
---|---|
ip_anon_cron | Implements hook_cron(). |
ip_anon_menu | Implements hook_menu(). |