| Versionen | |
|---|---|
| drupal6 – drupal7 | filter_format_allowcache($format) |
Check if text in a certain input format is allowed to be cached.
modules/
<?php
function filter_format_allowcache($format) {
static $cache = array();
$format = filter_resolve_format($format);
if (!isset($cache[$format])) {
$cache[$format] = db_result(db_query('SELECT cache FROM {filter_formats} WHERE format = %d', $format));
}
return $cache[$format];
}
?>
Kommentare
Kommentar hinzufügen