filter_format_allowcache

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

modules/filter/filter.module, строка 361

Версии
5 – 6
filter_format_allowcache($format)

Check if text in a certain input format is allowed to be cached.

▾ 2 функции вызывают filter_format_allowcache()

check_markup in modules/filter/filter.module
Фильтрует текст с помощью выбранного формата ввода.
search_index in modules/search/search.module
Обновляет полнотекстовый поисковый индекс для указанного элемента.

Код

<?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];
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему