1 filter.module filter_list_format($format_id)

Retrieves a list of filters for a given text format.

This function is deprecated in Backdrop. All text format object already have all filters loaded in the "filters" property of the object.

Parameters

$format_id: The format ID to retrieve filters for.

Return value

An array of filter objects associated to the given text format, keyed by: filter name.

Deprecated

since 1.0

File

core/modules/filter/filter.module, line 1146
Framework for handling the filtering of content.

Code

function filter_list_format($format_id) {
  watchdog_deprecated_function('Filter', __FUNCTION__);
  if ($format = filter_format_load($format_id)) {
    return $format->filters;
  }
  else {
    return array();
  }
}