Functions - main - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
deprecation_test_function

in drupal:8.4.0 and is removed from drupal:9.0.0. This is the deprecation message for deprecated_test_function().

core/modules/system/tests/modules/deprecation_test/deprecation_test.module A deprecated function. 4
downgrade_prevention_test_update_11102 core/modules/system/tests/modules/downgrade_prevention_test/downgrade_prevention_test.install A hook_update_N that is equivalent update to 10400.
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. 3
drupal_check_profile core/includes/install.inc Checks an installation profile's requirements. 1
drupal_common_theme

in drupal:11.1.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Theme\ThemeCommonElements::commonElements() instead,

core/includes/theme.inc Provides theme registration for themes across .inc files.
drupal_current_script_url core/includes/install.inc Returns the URL of the current script, with modified query parameters. 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. 6
drupal_flush_all_caches core/includes/common.inc Re-initializes the entire system. 12 1
drupal_generate_test_ua core/includes/bootstrap.inc Generates a user agent string with a HMAC and timestamp for tests. 9
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. 6
drupal_phpunit_contrib_extension_directory_roots core/tests/bootstrap.php Returns directories under which contributed extensions may exist. 1
drupal_phpunit_find_extension_directories core/tests/bootstrap.php Finds all valid extension directories recursively within a given directory. 1
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

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Extension\Requirement\RequirementSeverity::getMaxSeverity() instead.

core/includes/install.inc Extracts the highest severity from the requirements array. 1
drupal_requirements_url core/includes/install.inc Returns a URL for proceeding to the next page after a requirements problem. 1
drupal_static core/includes/bootstrap.inc Provides central static variable storage. 14
drupal_static_reset core/includes/bootstrap.inc Resets one or all centrally stored static variable(s). 16 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
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_image_upload_settings_form core/modules/editor/editor.admin.inc Subform constructor to configure the text editor's image upload settings. 2
editor_load

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal::entityTypeManager()->getStorage('editor')->load($format_id) instead.

core/modules/editor/editor.module Loads an individual configured text editor based on text format ID.
editor_removed_post_updates core/modules/editor/editor.post_update.php Implements hook_removed_post_updates().
editor_update_last_removed core/modules/editor/editor.install Implements hook_update_last_removed().
entity_test_create_bundle

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\entity_test\EntityTestHelper::createBundle() instead.

core/modules/system/tests/modules/entity_test/entity_test.module Creates a new bundle for entity_test entities.
entity_test_delete_bundle

in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\entity_test\EntityTestHelper::deleteBundle() instead.

core/modules/system/tests/modules/entity_test/entity_test.module Deletes a bundle for entity_test entities.
entity_test_install core/modules/system/tests/modules/entity_test/entity_test.install Implements hook_install(). 4 2
entity_test_schema core/modules/system/tests/modules/entity_test/entity_test.install Implements hook_schema().
entity_test_update_8001 core/modules/system/tests/modules/entity_test/update/entity_definition_updates_8001.inc Makes the 'user_id' field multiple and migrate its data.
entity_test_update_8001 core/modules/system/tests/modules/entity_test/update/status_report_8001.inc Test update.
entity_test_update_8002 core/modules/system/tests/modules/entity_test/update/status_report_8002.inc Test update.
entity_test_update_8002 core/modules/system/tests/modules/entity_test/update/entity_definition_updates_8002.inc Makes the 'user_id' field single and migrate its data.
error_displayable core/includes/errors.inc Determines whether an error should be displayed. 4
failed_22_update core/tests/Drupal/Tests/Core/Update/UpdateHookRegistryTest.php Simulates a hook_update_N functions.

Other projects


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