filter_format_load

  1. drupal
    1. 6
    2. 8
    3. 7
Versions
6 filter_format_load($arg)
7 – 8 filter_format_load($format_id)

Load 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()

▾ 20 functions call filter_format_load()

BlockTestCase::setUp in modules/block/block.test
BlockTestCase::testCustomBlockFormat in modules/block/block.test
Test creating custom block using Full HTML.
check_markup in modules/filter/filter.module
Run all the enabled filters on a piece of text.
FilterAdminTestCase::setUp in modules/filter/filter.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
FilterAdminTestCase::testFilterAdmin in modules/filter/filter.test
Test filter administration functionality.
FilterCRUDTestCase::verifyTextFormat in modules/filter/filter.test
Verify that a text format is properly stored.
FilterDefaultFormatTestCase::testDefaultTextFormats in modules/filter/filter.test
FilterFormatAccessTestCase::setUp in modules/filter/filter.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
FilterFormatAccessTestCase::testFormatPermissions in modules/filter/filter.test
FilterFormatAccessTestCase::testFormatRoles in modules/filter/filter.test
FilterFormatUpgradePathTestCase::testFilterFormatUpgrade in modules/simpletest/tests/upgrade/upgrade.filter.test
Test a successful upgrade.
filter_fallback_format_title in modules/filter/filter.module
Returns the title of the fallback text format.
filter_format_allowcache in modules/filter/filter.module
Check if text in a certain text format is allowed to be cached.
PHPFilterTestCase::testPHPFilter in modules/php/php.test
Make sure that the PHP filter evaluates PHP code when used.
PHPTestCase::setUp in modules/php/php.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
SearchCommentTestCase::setUp in modules/search/search.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…
TextFieldTestCase::_testTextfieldWidgetsFormatted in modules/field/modules/text/text.test
Helper function for testTextfieldWidgetsFormatted().
TextTranslationTestCase::setUp in modules/field/modules/text/text.test
token_example_tokens in examples/token_example/token_example.tokens.inc
Implements hook_tokens().
UserSignatureTestCase::setUp in modules/user/user.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…

Code

modules/filter/filter.module, line 161

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