Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
drupal_get_http_header includes/bootstrap.inc Gets the HTTP response headers for the current page. 5
drupal_get_installed_schema_version includes/install.inc Returns the currently installed schema version for a module. 16
drupal_get_js includes/common.inc Returns a themed presentation of all JavaScript code for the current page. 18
drupal_get_library includes/common.inc Retrieves information for a JavaScript/CSS library. 5 2
drupal_get_messages includes/bootstrap.inc Returns all messages that have been set with drupal_set_message(). 6
drupal_get_normal_path includes/path.inc Given a path alias, return the internal path it represents. 12
drupal_get_path includes/common.inc Returns the path to a system item (module, theme, etc.). 173 1
drupal_get_path_alias includes/path.inc Given an internal Drupal path, return the alias set by the administrator. 6
drupal_get_private_key includes/common.inc Ensures the private key variable used to generate tokens is set. 6
drupal_get_profile includes/common.inc Gets the name of the currently active installation profile. 15
drupal_get_query_array includes/common.inc Splits a URL-encoded query string into an array. 4
drupal_get_query_parameters includes/common.inc Processes a URL query parameter array to remove unwanted elements. 11
drupal_get_rdf_namespaces includes/common.inc Returns a string containing RDF namespace declarations for use in XML and XHTML output. 1
drupal_get_region_content includes/common.inc Gets assigned content for a given region. 3
drupal_get_schema includes/bootstrap.inc Gets the schema definition of a table, or the whole database schema. 28
drupal_get_schema_unprocessed includes/common.inc Returns the unprocessed and unaltered version of a module's schema. 11
drupal_get_schema_versions includes/install.inc Returns an array of available schema versions for a module. 7 1
drupal_get_title includes/bootstrap.inc Gets the title of the current page. 8
drupal_get_token includes/common.inc Generates a token based on $value, the user session, and the private key. 17
drupal_get_updaters includes/common.inc Assembles the Drupal Updater registry. 3
drupal_get_user_timezone includes/bootstrap.inc Returns the time zone of the current user. 4
drupal_goto includes/common.inc Sends the user to a different page. 45 4
drupal_group_css includes/common.inc Default callback to group CSS items. 1
drupal_hash_base64 includes/bootstrap.inc Calculates a base-64 encoded, URL-safe sha-256 hash. 32
drupal_help_arg includes/menu.inc Generates elements for the $arg array in the help hook. 5
drupal_hmac_base64 includes/bootstrap.inc Calculates a base-64 encoded, URL-safe sha-256 hmac. 9
drupal_html_class includes/common.inc Prepares a string for use as a valid class name. 12
drupal_html_id includes/common.inc Prepares a string for use as a valid HTML ID and guarantees uniqueness. 15 2
drupal_html_to_text includes/mail.inc Transforms an HTML string into plain text, preserving its structure. 7
drupal_http_build_query includes/common.inc Parses an array into a valid, rawurlencoded query string. 11
drupal_http_header_attributes includes/common.inc Formats an attribute string for an HTTP header. 1
drupal_http_request includes/common.inc Performs an HTTP request. 16
drupal_implode_tags includes/common.inc Implodes an array of tags into a string. 5
drupal_installation_attempted includes/bootstrap.inc Returns TRUE if a Drupal installation is currently being attempted. 6
drupal_install_fix_file includes/install.inc Attempts to fix file permissions. 1
drupal_install_mkdir includes/install.inc Creates a directory with the specified permissions. 1
drupal_install_profile_distribution_name includes/install.inc Loads the installation profile, extracting its defined distribution name. 8
drupal_install_schema includes/common.inc Creates all tables defined in a module's hook_schema(). 2
drupal_install_system includes/install.inc Installs the system module. 2
drupal_is_cli includes/bootstrap.inc Detects whether the current script is running in a command-line environment. 4
drupal_is_denied includes/bootstrap.inc Checks to see if an IP address has been blocked. 1
drupal_is_front_page includes/path.inc Check if the current page is the front page. 10
drupal_is_https includes/bootstrap.inc Checks whether an HTTPS request is being served. 1
drupal_json_decode includes/common.inc Converts an HTML-safe JSON string into its PHP equivalent. 9
drupal_json_encode includes/common.inc Converts a PHP variable into its JavaScript equivalent. 5
drupal_json_encode_helper includes/json-encode.inc Encodes a PHP variable to HTML-safe JSON for PHP versions below 5.3.0. 1
drupal_json_output includes/common.inc Returns data in JSON format. 21 1
drupal_js_defaults includes/common.inc Constructs an array of the defaults that are used for JavaScript items. 3
drupal_language_initialize includes/bootstrap.inc Initializes all the defined language types. 7
drupal_language_types includes/bootstrap.inc Returns a list of the built-in language types. 5

Other projects


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