function HTMLPurifier_DefinitionCache_Drupal::set in HTML Purifier 7
Same name and namespace in other branches
- 5 HTMLPurifier_DefinitionCache_Drupal.php \HTMLPurifier_DefinitionCache_Drupal::set()
- 6.2 HTMLPurifier_DefinitionCache_Drupal.php \HTMLPurifier_DefinitionCache_Drupal::set()
- 6 HTMLPurifier_DefinitionCache_Drupal.php \HTMLPurifier_DefinitionCache_Drupal::set()
- 7.2 HTMLPurifier_DefinitionCache_Drupal.php \HTMLPurifier_DefinitionCache_Drupal::set()
Unconditionally add an object to the cache, overwrites any existing object.
File
- ./
HTMLPurifier_DefinitionCache_Drupal.php, line 27
Class
Code
function set($def, $config) {
if (!$this
->checkDefType($def)) {
return;
}
$key = $this
->generateKey($config);
$this
->storeInDrupalCache($def, $key);
return TRUE;
}