filter_fallback_format

Versions
7
filter_fallback_format()

Returns the ID of the fallback text format that all users have access to.

▾ 9 functions call filter_fallback_format()

check_markup in modules/filter/filter.module
Run all the enabled filters on a piece of text.
filter_access in modules/filter/filter.module
Checks if a user has access to a particular text format.
filter_admin_format_form in modules/filter/filter.admin.inc
Generate a text format form.
filter_admin_overview in modules/filter/filter.admin.inc
Menu callback; Displays a list of all text formats and allows them to be rearranged.
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.
filter_get_roles_by_format in modules/filter/filter.module
Retrieves a list of roles that are allowed to use a given text format.
filter_permission_name in modules/filter/filter.module
Returns the machine-readable permission name for a provided text format.
_filter_delete_format_access in modules/filter/filter.module
Access callback for deleting text formats.

Code

modules/filter/filter.module, line 444

<?php
function filter_fallback_format() {
  // This variable is automatically set in the database for all installations
  // of Drupal. In the event that it gets deleted somehow, there is no safe
  // default to return, since we do not want to risk making an existing (and
  // potentially unsafe) text format on the site automatically available to all
  // users. Returning NULL at least guarantees that this cannot happen.
  return variable_get('filter_fallback_format');
}
?>
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.