1 filter.module | filter_format_exists($format_id) |
Determines if a text format exists.
Parameters
$format_id: The ID of the text format to check.
Return value
TRUE if the text format exists, FALSE otherwise. Note that for disabled: formats filter_format_exists() will return TRUE while filter_format_load() will return FALSE.
See also
File
- core/
modules/ filter/ filter.module, line 471 - Framework for handling the filtering of content.
Code
function filter_format_exists($format_id) {
$filter_format_names = config_get_names_with_prefix('filter.format');
return in_array('filter.format.' . $format_id, $filter_format_names, TRUE);
}