function filter_format_load

Loads a text format object from the database.

Parameters

$format_id: The format ID.

Return value

A fully-populated text format object, if the requested format exists and is enabled. If the format does not exist, or exists in the database but has been marked as disabled, FALSE is returned.

See also

filter_format_exists()

18 calls to filter_format_load()
BlockTest::testCustomBlockFormat in drupal/core/modules/block/lib/Drupal/block/Tests/BlockTest.php
Test creating custom block using Full HTML.
check_markup in drupal/core/modules/filter/filter.module
Runs all the enabled filters on a piece of text.
FilterAdminTest::setUp in drupal/core/modules/filter/lib/Drupal/filter/Tests/FilterAdminTest.php
Sets up a Drupal site for running functional and integration tests.
FilterAdminTest::testFilterAdmin in drupal/core/modules/filter/lib/Drupal/filter/Tests/FilterAdminTest.php
Tests filter administration functionality.
FilterCrudTest::verifyTextFormat in drupal/core/modules/filter/lib/Drupal/filter/Tests/FilterCrudTest.php
Verify that a text format is properly stored.

... See full list

File

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

Code

function filter_format_load($format_id) {
  $formats = filter_formats();
  return isset($formats[$format_id]) ? $formats[$format_id] : FALSE;
}