Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
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. 10
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. 22 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
drupal_load includes/bootstrap.inc Includes a file with the provided type and name. 17
drupal_load_stylesheet includes/common.inc Loads the stylesheet and resolves all @import commands. 4
drupal_load_stylesheet_content includes/common.inc Processes the contents of a stylesheet for aggregation. 4
drupal_load_updates includes/install.inc Loads .install files for installed modules to initialize the update system. 3
drupal_lookup_path includes/path.inc Given an alias, return its Drupal system URL if one exists. Given a Drupal system URL return one of its aliases if such a one exists. Otherwise, return FALSE. 5 3
drupal_mail includes/mail.inc Composes and optionally sends an e-mail message. 10
drupal_mail_format_display_name includes/mail.inc Return a RFC-2822 compliant "display-name" component. 1
drupal_mail_system includes/mail.inc Returns an object that implements the MailSystemInterface interface. 1
drupal_maintenance_theme includes/bootstrap.inc Enables use of the theme system without requiring database access. 5
drupal_map_assoc includes/common.inc Forms an associative array from a linear array. 38
drupal_match_path includes/path.inc Check if a path matches any pattern in a set of patterns. 3
drupal_mkdir includes/file.inc Creates a directory, optionally creating missing components in the path to the directory. 8
drupal_move_uploaded_file includes/file.inc Moves an uploaded file to a new location. 1
drupal_multilingual includes/bootstrap.inc Returns TRUE if there is more than one language enabled. 8
drupal_not_found includes/common.inc Delivers a "page not found" error to the browser. 11
drupal_override_server_variables includes/bootstrap.inc Sets appropriate server variables needed for command line scripts to work. 2
drupal_page_footer includes/common.inc Performs end-of-request tasks. 1
drupal_page_get_cache includes/bootstrap.inc Retrieves the current page from the cache. 1
drupal_page_header includes/bootstrap.inc Sets HTTP headers in preparation for a page response. 2
drupal_page_is_cacheable includes/bootstrap.inc Determines the cacheability of the current page. 5
drupal_page_set_cache includes/common.inc Stores the current page in the cache. 1
drupal_parse_dependency includes/common.inc Parses a dependency for comparison by drupal_check_incompatibility(). 1
drupal_parse_info_file includes/common.inc Parses Drupal module and theme .info files. 10
drupal_parse_info_format includes/common.inc Parses data in Drupal's .info format. 2
drupal_parse_url includes/common.inc Parses a URL string into its path, query, and fragment components. 7
drupal_path_alias_whitelist_rebuild includes/path.inc Rebuild the path alias white list. 3
drupal_path_initialize includes/path.inc Initialize the $_GET['q'] variable to the proper normal path. 1
drupal_placeholder includes/bootstrap.inc Formats text for emphasized display in a placeholder inside a sentence. 6
drupal_prepare_form includes/form.inc Prepares a structured form array. 8
drupal_pre_render_conditional_comments includes/common.inc #pre_render callback to render #browsers into #prefix and #suffix. 1
drupal_pre_render_link includes/common.inc #pre_render callback to render a link into #markup. 1
drupal_pre_render_links includes/common.inc #pre_render callback that collects child links into a single array. 3

Other projects


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