Functions - 10.3.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
file_post_update_add_permissions_to_roles core/modules/file/file.post_update.php Grant all non-anonymous roles the 'delete own files' permission.
file_progress_implementation

in drupal:10.3.0 and is removed from drupal:11.0.0. Use extension_loaded('uploadprogress') instead.

core/modules/file/file.module Determines the preferred upload progress implementation. 1
file_removed_post_updates core/modules/file/file.post_update.php Implements hook_removed_post_updates().
file_requirements core/modules/file/file.install Implements hook_requirements(). 1
file_save_upload core/modules/file/file.module Saves file uploads to a new location. 4
file_schema core/modules/file/file.install Implements hook_schema().
file_system_settings_submit core/modules/file/file.module Form submission handler for file system settings form. 1
file_test_entity_type_alter core/modules/file/tests/file_test/file_test.module Implements hook_entity_info_alter().
file_test_file_copy core/modules/file/tests/file_test/file_test.module Implements hook_file_copy().
file_test_file_download core/modules/file/tests/file_test/file_test.module Implements hook_file_download().
file_test_file_insert core/modules/file/tests/file_test/file_test.module Implements hook_ENTITY_TYPE_insert() for file entities.
file_test_file_load core/modules/file/tests/file_test/file_test.module Implements hook_ENTITY_TYPE_load() for file entities.
file_test_file_mimetype_mapping_alter core/modules/file/tests/file_test/file_test.module Implements hook_file_mimetype_mapping_alter().
file_test_file_move core/modules/file/tests/file_test/file_test.module Implements hook_file_move().
file_test_file_predelete core/modules/file/tests/file_test/file_test.module Implements hook_ENTITY_TYPE_predelete() for file entities.
file_test_file_scan_callback core/modules/file/tests/file_test/file_test.module Helper function for testing FileSystemInterface::scanDirectory(). 2 1
file_test_file_scan_callback_reset core/modules/file/tests/file_test/file_test.module Reset static variables used by file_test_file_scan_callback(). 1
file_test_file_update core/modules/file/tests/file_test/file_test.module Implements hook_ENTITY_TYPE_update() for file entities.
file_test_file_url_alter core/modules/file/tests/file_test/file_test.module Implements hook_file_url_alter().
file_test_get_all_calls core/modules/file/tests/file_test/file_test.module Get an array with the calls for all hooks. 2
file_test_get_calls core/modules/file/tests/file_test/file_test.module Gets the arguments passed to a given hook invocation. 3
file_test_reset core/modules/file/tests/file_test/file_test.module Reset/initialize the history of calls to the file_* hooks. 23
file_test_set_return core/modules/file/tests/file_test/file_test.module Assign a return value for a given operation. 3
file_test_validator core/modules/file/tests/file_test/file_test.module Helper validator that returns the $errors parameter.
file_theme core/modules/file/file.module Implements hook_theme().
file_tokens core/modules/file/file.module Implements hook_tokens().
file_token_info core/modules/file/file.module Implements hook_token_info().
file_update_last_removed core/modules/file/file.install Implements hook_update_last_removed().
file_validate

in drupal:10.2.0 and is removed from drupal:11.0.0. Use the 'file.validator' service instead.

core/modules/file/file.module Checks that a file meets the criteria specified by the validators. 2 1
file_validate_extensions

in drupal:10.2.0 and is removed from drupal:11.0.0. Use the 'file.validator' service instead.

core/modules/file/file.module Checks that the filename ends with an allowed extension. 2
file_validate_image_resolution

in drupal:10.2.0 and is removed from drupal:11.0.0. Use the 'file.validator' service instead.

core/modules/file/file.module Verifies that image dimensions are within the specified maximum and minimum. 1
file_validate_is_image

in drupal:10.2.0 and is removed from drupal:11.0.0. Use the 'file.validator' service instead.

core/modules/file/file.module Checks that the file is recognized as a valid image. 1
file_validate_name_length

in drupal:10.2.0 and is removed from drupal:11.0.0. Use the 'file.validator' service instead.

core/modules/file/file.module Checks for files with names longer than can be stored in the database. 1
file_validate_size

in drupal:10.2.0 and is removed from drupal:11.0.0. Use the 'file.validator' service instead.

core/modules/file/file.module Checks that the file's size is below certain limits. 1
filter_default_format core/modules/filter/filter.module Returns the ID of the default text format for a particular user. 23 1
filter_fallback_format core/modules/filter/filter.module Returns the ID of the fallback text format that all users have access to. 7 1
filter_filter_secure_image_alter core/modules/filter/filter.module Implements hook_filter_secure_image_alter().
filter_formats core/modules/filter/filter.module Retrieves a list of enabled text formats, ordered by weight. 15 6
filter_formats_reset core/modules/filter/filter.module Resets the text format caches. 7
filter_get_formats_by_role core/modules/filter/filter.module Retrieves a list of text formats that are allowed for a given role. 1
filter_get_roles_by_format core/modules/filter/filter.module Retrieves a list of roles that are allowed to use a given text format. 7
filter_help core/modules/filter/filter.module Implements hook_help().
filter_post_update_consolidate_filter_config core/modules/filter/filter.post_update.php Change filter_settings to type mapping.
filter_post_update_sort_filters core/modules/filter/filter.post_update.php Sorts filter format filter configuration.
filter_test_filter_format_disable core/modules/filter/tests/filter_test/filter_test.module Implements hook_filter_format_disable().
filter_test_filter_format_insert core/modules/filter/tests/filter_test/filter_test.module Implements hook_ENTITY_TYPE_insert().
filter_test_filter_format_update core/modules/filter/tests/filter_test/filter_test.module Implements hook_ENTITY_TYPE_update().
filter_theme core/modules/filter/filter.module Implements hook_theme().
format_size

in drupal:10.2.0 and is removed from drupal:11.0.0. Use \Drupal\Core\StringTranslation\ByteSizeMarkup::create($size, $langcode) instead.

core/includes/common.inc Generates a string representation for the given byte count. 3
form_get_options core/includes/form.inc Returns the indexes of a select element's options matching a given key.

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.