filter_format_allowcache
- Versions
- 4.6 – 6
filter_format_allowcache($format)- 7
filter_format_allowcache($format_id)
Check if text in a certain text format is allowed to be cached.
Code
modules/filter/filter.module, line 497
<?php
function filter_format_allowcache($format_id) {
static $cache = array();
if (!isset($cache[$format_id])) {
$cache[$format_id] = db_query('SELECT cache FROM {filter_format} WHERE format = :format', array(':format' => $format_id))->fetchField();
}
return $cache[$format_id];
}
?>Login or register to post comments 