function filter_access
Same name and namespace in other branches
- 7.x drupal-7.x/modules/filter/filter.module \filter_access()
Returns TRUE if the user is allowed to access this format.
Related topics
6 calls to filter_access()
- block_block in drupal-6.x/
modules/ block/ block.module - Implementation of hook_block().
- block_box_save in drupal-6.x/
modules/ block/ block.module - Saves a user-created block in the database.
- check_markup in drupal-6.x/
modules/ filter/ filter.module - Run all the enabled filters on a piece of text.
- node_access in drupal-6.x/
modules/ node/ node.module - Determine whether the current user may perform the given operation on the specified node.
- translation_nodeapi in drupal-6.x/
modules/ translation/ translation.module - Implementation of hook_nodeapi().
Archivo
- drupal-6.x/
modules/ filter/ filter.module, line 551 - Framework for handling filtering of content.
Código
function filter_access($format) {
$format = filter_resolve_format($format);
if (user_access('administer filters') || ($format == variable_get('filter_default_format', 1))) {
return TRUE;
}
else {
$formats = filter_formats();
return isset($formats[$format]);
}
}