Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
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_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
drupal_find_base_themes includes/theme.inc Find all the base themes for the specified theme. 3
drupal_find_theme_functions includes/theme.inc Allows themes and/or theme engines to discover overridden theme functions. 2
drupal_find_theme_templates includes/theme.inc Allows themes and/or theme engines to easily discover overridden templates. 3
drupal_flush_all_caches includes/common.inc Flushes all cached data on the site. 14
drupal_form_submit includes/form.inc Retrieves, populates, and processes a form. 6
drupal_generate_test_ua includes/bootstrap.inc Generates a user agent string with a HMAC and timestamp for simpletest. 3
drupal_get_bootstrap_phase includes/bootstrap.inc Returns the current bootstrap phase for this Drupal process. 5
drupal_get_breadcrumb includes/common.inc Gets the breadcrumb trail for the current page. 1
drupal_get_complete_schema includes/bootstrap.inc Gets the whole database schema. 2
drupal_get_css includes/common.inc Returns a themed representation of all stylesheets to attach to the page. 14
drupal_get_database_types includes/install.inc Returns all supported database installer objects that are compiled into PHP. 3
drupal_get_destination includes/common.inc Prepares a 'destination' URL query parameter for use with drupal_goto(). 29
drupal_get_feeds includes/common.inc Gets the feed URLs for the current page. 1
drupal_get_filename includes/bootstrap.inc Returns and optionally sets the filename for a system resource. 12 1
drupal_get_filetransfer_info includes/common.inc Assembles the Drupal FileTransfer registry. 2
drupal_get_form includes/form.inc Returns a renderable form array for a given form ID. 50 32
drupal_get_hash_salt includes/bootstrap.inc Gets a salt useful for hardening against SQL injection. 8
drupal_get_html_head includes/common.inc Retrieves output to be displayed in the HEAD tag of the HTML page. 4

Other projects


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