filter_format_allowcache
modules/filter/filter.module, строка 695
- Версии
- 5 – 6
filter_format_allowcache($format)
Check if text in a certain input format is allowed to be cached.
Код
<?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];
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии