filter_fallback_format
- Versions
- 7
filter_fallback_format()
Returns the ID of the fallback text format that all users have access to.
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 