public function AcquiaPurgeOddities::add in Acquia Purge 7
Add an odd behavior flag.
Parameters
string $oddity: Short and simple string describing the behavior, e.g. '403' or 'geoip'.
File
- lib/
AcquiaPurgeOddities.php, line 40 - Contains AcquiaPurgeOddities.
Class
- AcquiaPurgeOddities
- Tracks suspicious behavior through string flags.
Code
public function add($oddity) {
$oddity = (string) $oddity;
if (!in_array($oddity, $this->oddities)) {
$this->oddities[] = $oddity;
variable_set($this->variable, $this->oddities);
}
}