function htmlpurifier_cron in HTML Purifier 6
Same name and namespace in other branches
- 6.2 htmlpurifier.module \htmlpurifier_cron()
- 7.2 htmlpurifier.module \htmlpurifier_cron()
- 7 htmlpurifier.module \htmlpurifier_cron()
Implementation of hook_cron(). @note Checks for updates to the HTML Purifier library.
1 call to htmlpurifier_cron()
- htmlpurifier_init in ./
htmlpurifier.module - Implementation of hook_init(). @note Displays any need to update the HTML Purifier library.
File
- ./
htmlpurifier.module, line 30 - Implements HTML Purifier as a Drupal filter.
Code
function htmlpurifier_cron() {
// Maybe this should be changed in the future:
$result = drupal_http_request('http://htmlpurifier.org/live/VERSION');
$version = trim($result->data);
variable_set('htmlpurifier_version_current', $version);
}