filter_format_load

Versions
6
filter_format_load($arg)
7
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.

▾ 4 functions call filter_format_load()

block_custom_block_form in modules/block/block.module
Define the custom block form.
check_markup in modules/filter/filter.module
Run all the enabled filters on a piece of text.
filter_fallback_format_title in modules/filter/filter.module
Returns the title of the fallback text format.
filter_format_delete in modules/filter/filter.module
Delete a text format.

Code

modules/filter/filter.module, line 158

<?php
function filter_format_load($format_id) {
  $formats = filter_formats();
  return isset($formats[$format_id]) ? $formats[$format_id] : FALSE;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.