Functions - 10.3.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
drupal_attach_tabledrag core/includes/common.inc Assists in attaching the tableDrag JavaScript behavior to a themed table. 3
drupal_check_module core/includes/install.inc Checks a module's requirements. 1
drupal_check_profile core/includes/install.inc Checks an installation profile's requirements. 1
drupal_common_theme core/includes/theme.inc Provides theme registration for themes across .inc files. 1
drupal_current_script_url core/includes/install.inc Returns the URL of the current script, with modified query parameters. 1
drupal_detect_database_types

in drupal:10.2.0 and is removed from drupal:11.0.0. Use DatabaseDriverList::getList() instead.

core/includes/install.inc Detects all supported databases that are compiled into PHP. 1
drupal_error_levels core/includes/errors.inc Maps PHP error constants to watchdog severity levels. 1
drupal_find_theme_templates core/includes/theme.inc Allows themes and/or theme engines to easily discover overridden templates. 4
drupal_flush_all_caches core/includes/common.inc Rebuilds the container, flushes all persistent caches, resets all variables, and rebuilds all data structures. 8 1
drupal_generate_test_ua core/includes/bootstrap.inc Generates a user agent string with a HMAC and timestamp for tests. 9
drupal_get_database_types

in drupal:10.2.0 and is removed from drupal:11.0.0. Use DatabaseDriverList::getList() instead.

core/includes/install.inc Returns all supported database driver installer objects. 1
drupal_get_filetransfer_info core/includes/common.inc Assembles the Drupal FileTransfer registry. 2
drupal_get_updaters core/includes/common.inc Assembles the Drupal Updater registry. 5
drupal_install_fix_file core/includes/install.inc Attempts to fix file permissions. 1
drupal_install_mkdir core/includes/install.inc Creates a directory with the specified permissions. 1
drupal_install_profile_distribution_name core/includes/install.inc Loads the installation profile, extracting its defined distribution name. 8 1
drupal_install_profile_distribution_version core/includes/install.inc Loads the installation profile, extracting its defined version. 1
drupal_install_system core/includes/install.inc Installs the system module. 1
drupal_load_updates core/includes/install.inc Loads .install files for installed modules to initialize the update system. 3
drupal_maintenance_theme core/includes/bootstrap.inc Enables use of the theme system without requiring database access. 7
drupal_phpunit_contrib_extension_directory_roots core/tests/bootstrap.php Returns directories under which contributed extensions may exist. 2
drupal_phpunit_find_extension_directories core/tests/bootstrap.php Finds all valid extension directories recursively within a given directory. 2
drupal_phpunit_get_extension_namespaces core/tests/bootstrap.php Registers the namespace for each extension directory with the autoloader. 1
drupal_phpunit_populate_class_loader core/tests/bootstrap.php Populate class loader with additional namespaces for tests. 1
drupal_rebuild core/includes/utility.inc Rebuilds all caches even when Drupal itself does not work. 1
drupal_register_shutdown_function core/includes/bootstrap.inc Registers a function for execution on shutdown. 14 2
drupal_requirements_severity core/includes/install.inc Extracts the highest severity from the requirements array. 3
drupal_requirements_url core/includes/install.inc Returns a URL for proceeding to the next page after a requirements problem. 1
drupal_rewrite_settings

in drupal:10.1.0 and is removed from drupal:11.0.0. Use SettingsEditor::rewrite() instead. Note $settings_file argument becomes required and the first argument of the method.

core/includes/install.inc Replaces values in settings.php with values in the submitted array. 1
drupal_static core/includes/bootstrap.inc Provides central static variable storage. 25
drupal_static_reset core/includes/bootstrap.inc Resets one or all centrally stored static variable(s). 23 1
drupal_theme_rebuild

in drupal:10.1.0 and is removed from drupal:11.0.0. Use theme.registry service reset() method instead.

core/includes/theme.inc Forces the system to rebuild the theme registry. 1
drupal_valid_test_ua core/includes/bootstrap.inc Returns the test prefix if this is an internal request from a test. 15
drupal_verify_install_file core/includes/install.inc Verifies the state of the specified file. 5
drupal_verify_profile core/includes/install.inc Verifies that all dependencies are met for a given installation profile. 2
dynamic_page_cache_help core/modules/dynamic_page_cache/dynamic_page_cache.module Implements hook_help().
editor_editor_presave core/modules/editor/editor.module Implements hook_ENTITY_TYPE_presave().
editor_element_info_alter core/modules/editor/editor.module Implements hook_element_info_alter().
editor_entity_delete core/modules/editor/editor.module Implements hook_entity_delete().
editor_entity_insert core/modules/editor/editor.module Implements hook_entity_insert().
editor_entity_revision_delete core/modules/editor/editor.module Implements hook_entity_revision_delete().
editor_entity_update core/modules/editor/editor.module Implements hook_entity_update().
editor_file_download core/modules/editor/editor.module Implements hook_file_download().
editor_filter_format_presave core/modules/editor/editor.module Implements hook_ENTITY_TYPE_presave().
editor_filter_xss core/modules/editor/editor.module Applies text editor XSS filtering. 2
editor_form_filter_admin_format_editor_configure core/modules/editor/editor.module Button submit handler for filter_format_form()'s 'editor_configure' button. 2
editor_form_filter_admin_format_submit core/modules/editor/editor.module Additional submit handler for filter_format_form(). 1
editor_form_filter_admin_format_validate core/modules/editor/editor.module Additional validate handler for filter_format_form(). 1
editor_form_filter_admin_form_ajax core/modules/editor/editor.module AJAX callback handler for filter_format_form(). 1
editor_form_filter_admin_overview_alter core/modules/editor/editor.module Implements hook_form_FORM_ID_alter().

Other projects


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