You are here

ip_anon.module in IP Anonymize 8

Same filename and directory in other branches
  1. 5 ip_anon.module
  2. 6 ip_anon.module
  3. 7 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 (\Drupal::config('ip_anon.settings')
    ->get('policy')) {
    module_load_include('inc', 'ip_anon');
    ip_anon_scrub();
  }
}

Functions

Namesort descending Description
ip_anon_cron Implements hook_cron().