1. 1.12.x includes/drupal.inc
  2. 1.10.x includes/drupal.inc
  3. 1.11.x includes/drupal.inc
  4. 1.7.x includes/drupal.inc
  5. 1.8.x includes/drupal.inc
  6. 1.9.x includes/drupal.inc

Contains constants and function wrappers for Drupal 7.x compatibility.




Namesort descending Description
drupal_access_denied Deprecated Delivers an "access denied" error to the browser.
drupal_add_css Deprecated Adds a cascading stylesheet to the stylesheet queue.
drupal_add_feed Deprecated Adds a feed URL for the current page.
drupal_add_html_head Deprecated Adds output to the HEAD tag of the HTML page.
drupal_add_html_head_link Deprecated Adds a LINK tag with a distinct 'rel' attribute to the page's HEAD.
drupal_add_http_header Deprecated Sets an HTTP response header for the current page.
drupal_add_js Deprecated Adds a JavaScript file, setting, or inline code to the page.
drupal_add_library Deprecated Adds multiple JavaScript or CSS files at the same time.
drupal_add_tabledrag Deprecated Assists in adding the tableDrag JavaScript behavior to a themed table.
drupal_aggregate_css Deprecated Aggregation callback: Aggregates CSS files and inline content.
drupal_aggregate_js Deprecated Default callback to aggregate JavaScript files.
drupal_alter Deprecated Passes alterable variables to specific hook_TYPE_alter() implementations.
drupal_anonymous_user Deprecated Generates a default anonymous $user object.
drupal_array_get_nested_value Deprecated Retrieves a value from a nested array with variable depth.
drupal_array_merge_deep Deprecated Merges multiple arrays, recursively, and returns the merged array.
drupal_array_merge_deep_array Deprecated Merges multiple arrays, recursively, and returns the merged array.
drupal_array_nested_key_exists Deprecated Determines whether a nested array contains the requested keys.
drupal_array_set_nested_value Deprecated Sets a value in a nested array with variable depth.
drupal_array_unset_nested_value Deprecated Unsets a value in a nested array with variable depth.
drupal_attributes Deprecated Converts an associative array to an XML/HTML tag attribute string.
drupal_autoload_class Deprecated Confirms that a class is available.
drupal_autoload_interface Deprecated Confirms that a class is available.
drupal_base64_encode Deprecated Returns a URL-safe, base64 encoded version of the supplied string.
drupal_basename Deprecated Gets the filename from a given path.
drupal_bootstrap Deprecated Ensures Backdrop is bootstrapped to the specified phase.
drupal_build_css_cache Deprecated Aggregates and optimizes CSS files into a cache file in the files directory.
drupal_build_form Deprecated Builds and processes a form for a given form ID.
drupal_build_js_cache Deprecated Aggregates JavaScript files into a cache file in the files directory.
drupal_cache_system_paths Deprecated Cache system paths for a page.
drupal_check_incompatibility Deprecated Checks whether a version is compatible with a given dependency.
drupal_check_module Deprecated Checks a module's requirements.
drupal_check_profile Deprecated Checks an installation profile's requirements.
drupal_chmod Deprecated Sets the permissions on a file or directory.
drupal_clean_css_identifier Deprecated Prepares a string for use as a CSS identifier (element, class, or ID name).
drupal_clear_css_cache Deprecated Deletes old cached CSS files.
drupal_clear_js_cache Deprecated Deletes old cached JavaScript files and variables.
drupal_clear_path_cache Deprecated Clear the path cache.
drupal_common_theme Deprecated Provides theme registration for themes across .inc files.
drupal_convert_to_utf8 Deprecated Converts data to UTF-8.
drupal_cron_run Deprecated Executes a cron run when called.
drupal_current_script_url Deprecated Returns the URL of the current script, with modified query parameters.
drupal_delete_file_if_stale Deprecated Deletes files modified more than a set time ago.
drupal_deliver_html_page Deprecated Packages and sends the result of a page callback to the browser as HTML.
drupal_deliver_page Deprecated Delivers a page callback result to the browser in the appropriate format.
drupal_depth_first_search Deprecated Performs a depth-first search and sort on a directed acyclic graph.
drupal_detect_baseurl Deprecated Loads the installation profile, extracting its defined distribution name.
drupal_detect_database_types Deprecated Returns all supported database installer objects that are compiled into PHP.
drupal_dirname Deprecated Gets the name of the directory from a given path.
drupal_encode_path Deprecated Encodes a Backdrop path for use in a URL.
drupal_environment_initialize Deprecated Initializes the PHP environment.
drupal_error_levels Deprecated Maps PHP error constants to watchdog severity levels.
drupal_exit Deprecated Performs end-of-request tasks.
drupal_explode_tags Deprecated Explodes a string of tags into an array.
drupal_fast_404 Deprecated Returns a simple 404 Not Found page.
drupal_find_base_themes Deprecated Find all the base themes for the specified theme.
drupal_find_theme_functions Deprecated Allows themes and/or theme engines to discover overridden theme functions.
drupal_find_theme_templates Deprecated Allows themes and/or theme engines to easily discover overridden templates.
drupal_flush_all_caches Deprecated Flushes all cached data on the site.
drupal_form_submit Deprecated Retrieves, populates, and processes a form.
drupal_generate_test_ua Deprecated Generates a user agent string with a HMAC and timestamp for simpletest.
drupal_get_bootstrap_phase Deprecated Returns the current bootstrap phase for this Backdrop process.
drupal_get_breadcrumb Deprecated Gets the breadcrumb trail for the current page.
drupal_get_complete_schema Deprecated Gets the whole database schema.
drupal_get_css Deprecated Returns a themed representation of all stylesheets to attach to the page.
drupal_get_database_types Deprecated Returns all supported database installer objects that are compiled into PHP.
drupal_get_destination Deprecated Prepares a 'destination' URL query parameter for use with backdrop_goto().
drupal_get_feeds Deprecated Gets the feed URLs for the current page.
drupal_get_filename Deprecated Returns and optionally sets the filename for a system resource.
drupal_get_filetransfer_info Deprecated Assembles the Backdrop FileTransfer registry.
drupal_get_form Deprecated Returns a renderable form array for a given form ID.
drupal_get_hash_salt Deprecated Gets a salt useful for hardening against SQL injection.
drupal_get_html_head Deprecated Retrieves output to be displayed in the HEAD tag of the HTML page.
drupal_get_http_header Deprecated Gets the HTTP response headers for the current page.
drupal_get_installed_schema_version Deprecated Returns the currently installed schema version for a module.
drupal_get_js Deprecated Returns a themed presentation of all JavaScript code for the current page.
drupal_get_library Deprecated Retrieves information for a JavaScript/CSS library.
drupal_get_messages Deprecated Returns all messages that have been set with backdrop_set_message().
drupal_get_normal_path Deprecated Given a path alias, return the internal path it represents.
drupal_get_path Deprecated Returns the path to a system item (module, theme, etc.).
drupal_get_path_alias Deprecated Given an internal Backdrop path, return the alias set by the administrator.
drupal_get_private_key Deprecated Ensures the private key variable used to generate tokens is set.
drupal_get_profile Deprecated Gets the name of the currently active installation profile.
drupal_get_query_array Deprecated Splits a URL-encoded query string into an array.
drupal_get_query_parameters Deprecated Processes a URL query parameter array to remove unwanted elements.
drupal_get_schema Deprecated Gets the schema definition of a table, or the whole database schema.
drupal_get_schema_unprocessed Deprecated Returns the unprocessed and unaltered version of a module's schema.
drupal_get_schema_versions Deprecated Returns an array of available schema versions for a module.
drupal_get_title Deprecated Gets the title of the current page.
drupal_get_token Deprecated Generates a token based on $value, the user session, and the private key.
drupal_get_updaters Deprecated Assembles the Backdrop Updater registry.
drupal_get_user_timezone Deprecated Returns the time zone of the current user.
drupal_goto Deprecated Sends the user to a different page.
drupal_group_css Deprecated Grouping callback: Groups CSS items by their types, media, and browsers.
drupal_group_js Deprecated Default callback to group JavaScript items.
drupal_hash_base64 Deprecated Calculates a base-64 encoded, URL-safe sha-256 hash.
drupal_hmac_base64 Deprecated Calculates a base-64 encoded, URL-safe sha-256 hmac.
drupal_html_class Deprecated Prepares a string for use as a valid class name.
drupal_html_id Deprecated Prepares a string for use as a valid HTML ID and guarantees uniqueness.
drupal_html_to_text Deprecated Transforms an HTML string into plain text, preserving its structure.
drupal_http_build_query Deprecated Parses an array into a valid, rawurlencoded query string.
drupal_http_header_attributes Deprecated Formats an attribute string for an HTTP header.
drupal_http_request Deprecated Performs an HTTP request.
drupal_implode_tags Deprecated Implodes an array of tags into a string.
drupal_installation_attempted Deprecated Returns TRUE if a Backdrop installation is currently being attempted.
drupal_install_mkdir Deprecated Creates a directory with the specified permissions.
drupal_install_profile_distribution_name Deprecated Loads the installation profile, extracting its defined distribution name.
drupal_install_schema Deprecated Creates all tables defined in a module's hook_schema().
drupal_install_system Deprecated Installs the system module.
drupal_is_cli Deprecated Detects whether the current script is running in a command-line environment.
drupal_is_front_page Deprecated Check if the current page is the front page.
drupal_js_defaults Deprecated Constructs an array of the defaults that are used for JavaScript items.
drupal_json_decode Deprecated Converts an HTML-safe JSON string into its PHP equivalent.
drupal_json_encode Deprecated Converts a PHP variable into its JavaScript equivalent.
drupal_json_output Deprecated Prints data to the page in JSON format.
drupal_language_initialize Deprecated Initializes all the defined language types.
drupal_load Deprecated Includes a file with the provided type and name.
drupal_load_stylesheet Deprecated Loads the stylesheet and resolves all @import commands.
drupal_load_stylesheet_content Deprecated Processes the contents of a stylesheet for aggregation.
drupal_load_updates Deprecated Loads .install files for installed modules to initialize the update system.
drupal_lookup_path Deprecated Given an alias, return its Backdrop system URL if one exists.
drupal_mail Deprecated Composes and optionally sends an e-mail message.
drupal_mail_system Deprecated Returns an object that implements the MailSystemInterface interface.
drupal_maintenance_theme Deprecated Enables use of the theme system without requiring database access.
drupal_map_assoc Deprecated Forms an associative array from a linear array.
drupal_match_path Deprecated Check if a path matches any pattern in a set of patterns.
drupal_mkdir Deprecated Creates a directory using Backdrop's default mode.
drupal_move_uploaded_file Deprecated Moves an uploaded file to a new location.
drupal_not_found Deprecated Delivers a "page not found" error to the browser.
drupal_override_server_variables Deprecated Sets appropriate server variables needed for command line scripts to work.
drupal_page_footer Deprecated Performs end-of-request tasks.
drupal_page_get_cache Deprecated Retrieves the current page from the cache.
drupal_page_header Deprecated Sets HTTP headers in preparation for a page response.
drupal_page_is_cacheable Deprecated Determines the cacheability of the current page.
drupal_page_set_cache Deprecated Stores the current page in the cache.
drupal_parse_dependency Deprecated Parses a dependency for comparison by backdrop_check_incompatibility().
drupal_parse_info_file Deprecated Parses Backdrop module and theme .info files.
drupal_parse_info_format Deprecated Parses data in Backdrop's .info format.
drupal_parse_url Deprecated Parses a system URL string into an associative array suitable for url().
drupal_path_alias_whitelist_rebuild Deprecated Rebuild the path alias white list.
drupal_path_initialize Deprecated Initialize the $_GET['q'] variable to the proper normal path.
drupal_placeholder Deprecated Formats text for emphasized display in a placeholder inside a sentence.
drupal_prepare_form Deprecated Prepares a structured form array.
drupal_pre_render_conditional_comments Deprecated Pre-render callback: Renders #browsers into #prefix and #suffix.
drupal_pre_render_link Deprecated Pre-render callback: Renders a link into #markup.
drupal_pre_render_links Deprecated Pre-render callback: Collects child links into a single array.
drupal_pre_render_markup Deprecated Pre-render callback: Appends contents in #markup to #children.
drupal_pre_render_scripts Deprecated #pre_render callback to add the elements needed for JavaScript tags to be rendered.
drupal_pre_render_styles Deprecated Pre-render callback: Adds the elements needed for CSS tags to be rendered.
drupal_process_attached Deprecated Adds attachments to a render() structure.
drupal_process_form Deprecated Processes a form submission.
drupal_process_states Deprecated Adds JavaScript to change the state of an element based on another element.
drupal_random_bytes Deprecated Returns a string of highly randomized bytes (over the full 8-bit range).
drupal_random_key Deprecated Returns a URL-safe, base64 encoded string of highly randomized bytes (over the full 8-bit range).
drupal_realpath Deprecated Resolves the absolute filepath of a local URI or filepath.
drupal_rebuild_form Deprecated Constructs a new $form from the information in $form_state.
drupal_redirect_form Deprecated Redirects the user to a URL after a form has been processed.
drupal_region_class Deprecated Provides a standard HTML class name that identifies a page region.
drupal_register_shutdown_function Deprecated Registers a function for execution on shutdown.
drupal_render Deprecated Renders HTML given a structured array tree.
drupal_render_cache_by_query Deprecated Prepares an element for caching based on a query.
drupal_render_cache_get Deprecated Gets the rendered output of a renderable element from the cache.
drupal_render_cache_set Deprecated Caches the rendered output of a renderable element.
drupal_render_children Deprecated Renders children of an element and concatenates them.
drupal_render_cid_create Deprecated Creates the cache ID for a renderable element.
drupal_render_cid_parts Deprecated Returns cache ID parts for building a cache ID.
drupal_render_collect_attached Deprecated Collects #attached for an element and its children into a single array.
drupal_render_page Deprecated Renders the page, including the HTML, HEAD, and BODY tags.
drupal_required_modules Deprecated Returns an array of modules required by core.
drupal_requirements_severity Deprecated Extracts the highest severity from the requirements array.
drupal_requirements_url Deprecated Returns a URL for proceeding to the next page after a requirements problem.
drupal_retrieve_form Deprecated Retrieves the structured array that defines a given form.
drupal_rewrite_settings Deprecated Replaces values in settings.php with values in the submitted array.
drupal_rmdir Deprecated Removes a directory.
drupal_save_session Deprecated Determines whether to save session data of the current request.
drupal_schema_fields_sql Deprecated Retrieves a list of fields from a table schema.
drupal_send_headers Deprecated Sends the HTTP response headers that were previously set, adding defaults.
drupal_serve_page_from_cache Deprecated Sets HTTP headers in preparation for a cached page response.
drupal_session_commit Deprecated Commits the current session, if necessary.
drupal_session_destroy_uid Deprecated Ends a specific user's session(s).
drupal_session_initialize Deprecated Initializes the session handler, starting a session if needed.
drupal_session_regenerate Deprecated Called when an anonymous user becomes authenticated or vice-versa.
drupal_session_start Deprecated Starts a session forcefully, preserving already set session data.
drupal_session_started Deprecated Returns whether a session has been started.
drupal_set_breadcrumb Deprecated Sets the breadcrumb trail for the current page.
drupal_set_installed_schema_version Deprecated Update the installed version information for a module.
drupal_set_message Deprecated Sets a message to display to the user.
drupal_set_time_limit Deprecated Attempts to set the PHP maximum execution time.
drupal_settings_initialize Deprecated Sets the base URL, cookie domain, and session name from configuration.
drupal_set_title Deprecated Sets the title of the current page.
drupal_site_offline Deprecated Delivers a "site is under maintenance" message to the browser.
drupal_sort_title Deprecated Sorts a structured array by 'title' key (no # prefix).
drupal_sort_weight Deprecated Sorts a structured array by 'weight' key (no # prefix).
drupal_static Deprecated Provides central static variable storage.
drupal_static_reset Deprecated Resets one or all centrally stored static variable(s).
drupal_strip_dangerous_protocols Deprecated Strips dangerous protocols (e.g. 'javascript:') from a URI.
drupal_strlen Deprecated Counts the number of characters in a UTF-8 string.
drupal_strtolower Deprecated Lowercase a UTF-8 string.
drupal_strtoupper Deprecated Uppercase a UTF-8 string.
drupal_substr Deprecated Cuts off a piece of a string based on character indices and counts.
drupal_system_listing Deprecated Returns information about system object files (modules, themes, etc.).
drupal_tempnam Deprecated Creates a file with a unique filename in the specified directory.
drupal_theme_access Deprecated Determines if a theme is available to use.
drupal_theme_initialize Deprecated Initializes the theme system by loading the theme.
drupal_theme_rebuild Deprecated Forces the system to rebuild the theme registry.
drupal_truncate_bytes Deprecated Truncates a UTF-8-encoded string safely to a number of bytes.
drupal_ucfirst Deprecated Capitalizes the first letter of a UTF-8 string.
drupal_uninstall_modules Deprecated Uninstalls a given list of disabled modules.
drupal_uninstall_schema Deprecated Removes all tables defined in a module's hook_schema().
drupal_unlink Deprecated Deletes a file.
drupal_unpack Deprecated Unserializes and appends elements from a serialized string.
drupal_validate_form Deprecated Validates user-submitted form data in the $form_state array.
drupal_validate_utf8 Deprecated Checks whether a string is valid UTF-8.
drupal_valid_http_host Deprecated Validates that a hostname (for example $_SERVER['HTTP_HOST']) is safe.
drupal_valid_path Deprecated Checks a path exists and the current user has access to it.
drupal_valid_test_ua Deprecated Returns the test prefix if this is an internal request from SimpleTest.
drupal_valid_token Deprecated Validates a token based on $value, the user session, and the private key.
drupal_var_export Deprecated Backdrop-friendly var_export().
drupal_verify_install_file Deprecated Verifies the state of the specified file.
drupal_verify_profile Deprecated Verifies an installation profile for installation.
drupal_wrap_mail Deprecated Performs format=flowed soft wrapping for mail (RFC 3676).
drupal_write_record Deprecated Saves (inserts or updates) a record to the database based upon the schema.
drupal_xml_parser_create Deprecated Prepares a new XML parser.
element_sort Deprecated Sorts a structured array by '#weight' property.
element_sort_by_title Deprecated Sorts a structured array by '#title' property.
file_create_htaccess Deprecated Creates a .htaccess file in the given directory.
format_username Deprecated Format a username.
install_drupal Deprecated Installs Backdrop either interactively or via an array of passed-in settings.
node_types_rebuild Deprecated Drupal-compatible wrapper for clearing caches.
system_get_date_types Deprecated Alters Backdrop's list of defined date formats and attributes to return the expected date types and attributes for Drupal's system_get_date_types() function.