filter_format_allowcache
modules/filter/filter.module, line 361
- Versions
- 4.6 – 7
filter_format_allowcache($format)
Check if text in a certain input format is allowed to be cached.
Code
<?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];
}
?> 