Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
drupal_anonymous_user includes/bootstrap.inc Generates a default anonymous $user object. 14
drupal_array_diff_assoc_recursive includes/common.inc Recursively computes the difference of arrays with additional index check. 1
drupal_array_get_nested_value includes/common.inc Retrieves a value from a nested array with variable depth. 16
drupal_array_merge_deep includes/bootstrap.inc Merges multiple arrays, recursively, and returns the merged array. 4
drupal_array_merge_deep_array includes/bootstrap.inc Merges multiple arrays, recursively, and returns the merged array. 4
drupal_array_nested_key_exists includes/common.inc Determines whether a nested array contains the requested keys. 2
drupal_array_set_nested_value includes/common.inc Sets a value in a nested array with variable depth. 7
drupal_attributes includes/common.inc Converts an associative array to an XML/HTML tag attribute string. 41
drupal_autoload_class includes/bootstrap.inc Confirms that a class is available. 1 2
drupal_autoload_interface includes/bootstrap.inc Confirms that an interface is available. 1 2
drupal_autoload_test_registry_files_alter modules/simpletest/tests/drupal_autoload_test/drupal_autoload_test.module Implements hook_registry_files_alter().
drupal_autoload_trait includes/bootstrap.inc Confirms that a trait is available. 1 1
drupal_base64_encode includes/bootstrap.inc Returns a URL-safe, base64 encoded version of the supplied string. 1
drupal_basename includes/file.inc Gets the filename from a given path. 32
drupal_block_denied includes/bootstrap.inc Handles denied users. 1
drupal_bootstrap includes/bootstrap.inc Ensures Drupal is bootstrapped to the specified phase. 16
drupal_build_css_cache includes/common.inc Aggregates and optimizes CSS files into a cache file in the files directory. 1
drupal_build_form includes/form.inc Builds and process a form based on a form id. 3
drupal_build_js_cache includes/common.inc Aggregates JavaScript files into a cache file in the files directory. 2
drupal_cache_system_paths includes/path.inc Cache system paths for a page. 1
drupal_check_incompatibility includes/common.inc Checks whether a version is compatible with a given dependency. 2
drupal_check_memory_limit includes/bootstrap.inc Compares the memory required for an operation to the available memory. 4
drupal_check_module includes/install.inc Checks a module's requirements. 1
drupal_check_profile includes/install.inc Checks an installation profile's requirements. 1
drupal_check_trusted_hosts includes/bootstrap.inc Checks trusted HTTP Host headers to protect against header injection attacks. 2
drupal_chmod includes/file.inc Sets the permissions on a file or directory. 9
drupal_clean_css_identifier includes/common.inc Prepares a string for use as a CSS identifier (element, class, or ID name). 2
drupal_clear_css_cache includes/common.inc Deletes old cached CSS files. 3 1
drupal_clear_js_cache includes/common.inc Deletes old cached JavaScript files and variables. 1 1
drupal_clear_opcode_cache includes/bootstrap.inc Invalidates a PHP file from any active opcode caches. 1
drupal_clear_path_cache includes/path.inc Clear the path cache. 3
drupal_common_theme includes/common.inc Provides theme registration for themes across .inc files. 1
drupal_convert_to_utf8 includes/unicode.inc Converts data to UTF-8. 2
drupal_cron_cleanup includes/common.inc DEPRECATED: Shutdown function: Performs cron cleanup.
drupal_cron_run includes/common.inc Executes a cron run when called. 8
drupal_current_script_url includes/install.inc Returns the URL of the current script, with modified query parameters. 2
drupal_delete_file_if_stale includes/common.inc Callback to delete files modified more than a set time ago. 2
drupal_deliver_html_page includes/common.inc Packages and sends the result of a page callback to the browser as HTML. 2
drupal_deliver_page includes/common.inc Delivers a page callback result to the browser in the appropriate format. 4
drupal_depth_first_search includes/graph.inc Performs a depth-first search and sort on a directed acyclic graph. 3
drupal_detect_baseurl includes/install.inc Detects the base URL using the PHP $_SERVER variables.
drupal_detect_database_types includes/install.inc Detects all supported databases that are compiled into PHP. 1
drupal_dirname includes/file.inc Gets the name of the directory from a given path. 5
drupal_encode_path includes/common.inc Encodes a Drupal path for use in a URL. 3
drupal_environment_initialize includes/bootstrap.inc Initializes the PHP environment. 1
drupal_error_levels includes/errors.inc Maps PHP error constants to watchdog severity levels. 1
drupal_exit includes/common.inc Performs end-of-request tasks. 23
drupal_explode_tags includes/common.inc Explodes a string of tags into an array. 6
drupal_fast_404 includes/bootstrap.inc Returns a simple 404 Not Found page. 1
drupal_file_scan_write_cache includes/bootstrap.inc Writes the file scan cache to the persistent cache. 2

Other projects


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