Functions - 9.5.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
demo_umami_toolbar core/profiles/demo_umami/demo_umami.profile Implements hook_toolbar().
dependency_version_test_system_info_alter core/modules/system/tests/modules/dependency_version_test/dependency_version_test.module Implements hook_system_info_alter().
deprecated_module_test_system_info_alter core/modules/system/tests/modules/deprecated_module_test/deprecated_module_test.module Implements hook_system_info_alter().
deprecation_test_deprecated_alter_alter core/modules/system/tests/modules/deprecation_test/deprecation_test.module Implements hook_deprecated_alter_alter().
deprecation_test_deprecated_hook core/modules/system/tests/modules/deprecation_test/deprecation_test.module Implements hook_deprecated_hook().
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
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 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_functions core/includes/theme.inc Allows themes and/or theme engines to discover overridden theme functions. 2
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 simpletest. 9
drupal_get_database_types core/includes/install.inc Returns all supported database driver installer objects. 8
drupal_get_filename

in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Extension\ExtensionPathResolver::getPathname() instead.

core/includes/bootstrap.inc Returns and optionally sets the filename for a system resource. 2
drupal_get_filetransfer_info core/includes/common.inc Assembles the Drupal FileTransfer registry. 2
drupal_get_installed_schema_version

in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Update\UpdateHookRegistry::getInstalledVersion() or \Drupal\Core\Update\UpdateHookRegistry::getAllInstalledVersions() instead.

core/includes/schema.inc Returns the currently installed schema version for a module. 1
drupal_get_module_schema

in drupal:9.2.0 and is removed from drupal:10.0.0. No direct replacement is provided. Testing classes could use \Drupal\TestTools\Extension\SchemaInspector for introspection.

core/includes/schema.inc Returns a module's schema. 3
drupal_get_path

in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Extension\ExtensionPathResolver::getPath() instead.

core/includes/bootstrap.inc Returns the path to a system item (module, theme, etc.). 1
drupal_get_schema_versions

in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Update\SchemaDataInterface::getAvailableUpdates() instead.

core/includes/schema.inc Returns an array of available schema versions for a module. 1
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. 9 1
drupal_install_profile_distribution_version core/includes/install.inc Loads the installation profile, extracting its defined version. 1
drupal_install_schema

in drupal:9.2.0 and is removed from drupal:10.0.0. No direct replacement is provided.

core/includes/schema.inc Creates all tables defined in a module's hook_schema(). 1
drupal_install_system core/includes/install.inc Installs the system module. 1
drupal_js_defaults

in drupal:9.4.0 and is removed from drupal:10.0.0. No direct replacement is provided.

core/includes/common.inc Constructs an array of the defaults that are used for JavaScript assets. 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. 12 1
drupal_required_modules

in drupal:9.4.0 and is removed from drupal:10.0.0. There's no replacement.

core/includes/module.inc Returns an array of modules required by core. 1
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 core/includes/install.inc Replaces values in settings.php with values in the submitted array. 3
drupal_set_installed_schema_version

in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\Core\Update\UpdateHookRegistry::setInstalledVersion() instead.

core/includes/schema.inc Updates the installed version information for a module. 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). 25 1
drupal_theme_rebuild core/includes/theme.inc Forces the system to rebuild the theme registry. 7
drupal_uninstall_schema

in drupal:9.2.0 and is removed from drupal:10.0.0. No direct replacement is provided.

core/includes/schema.inc Removes all tables defined in a module's hook_schema(). 1
drupal_valid_test_ua core/includes/bootstrap.inc Returns the test prefix if this is an internal request from SimpleTest. 16

Other projects


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