Functions

Primary tabs

Name Locationsort descending Description Direct uses Strings
drupal_encode_path drupal/core/includes/common.inc Encodes a Drupal path for use in a URL. 4
drupal_goto drupal/core/includes/common.inc Sends the user to a different Drupal page. 40 4
_external_url_is_local drupal/core/includes/common.inc Determines if an external URL points to this Drupal installation. 1
drupal_http_request drupal/core/includes/common.inc Performs an HTTP request. 19
_drupal_http_use_proxy drupal/core/includes/common.inc Helper function for determining hosts excluded from needing a proxy. 1
valid_email_address drupal/core/includes/common.inc Verifies the syntax of the given e-mail address. 4
valid_url drupal/core/includes/common.inc Verifies the syntax of the given URL. 7
valid_number_step drupal/core/includes/common.inc Verifies that a number is a multiple of a given step. 3
drupal_strip_dangerous_protocols drupal/core/includes/common.inc Strips dangerous protocols (e.g. 'javascript:') from a URI. 8
check_url drupal/core/includes/common.inc Strips dangerous protocols from a URI and encodes it for output to HTML. 22
filter_xss_admin drupal/core/includes/common.inc Applies a very permissive XSS/HTML filter for admin-only use. 39 1
filter_xss drupal/core/includes/common.inc Filters HTML to prevent cross-site-scripting (XSS) vulnerabilities. 26
_filter_xss_split drupal/core/includes/common.inc Processes an HTML tag. 1 1
_filter_xss_attributes drupal/core/includes/common.inc Processes a string of HTML attributes. 1
filter_xss_bad_protocol drupal/core/includes/common.inc Processes an HTML attribute value and strips dangerous protocols from URLs. 1
format_rss_channel drupal/core/includes/common.inc Formats an RSS channel. 2
format_rss_item drupal/core/includes/common.inc Formats a single RSS item. 2
format_xml_elements drupal/core/includes/common.inc Formats XML elements. 7
format_plural drupal/core/includes/common.inc Formats a string containing a count of items. 64
parse_size drupal/core/includes/common.inc Parses a given byte count. 7
format_size drupal/core/includes/common.inc Generates a string representation for the given byte count. 17
format_interval drupal/core/includes/common.inc Formats a time interval with the requested granularity. 36 9
format_date drupal/core/includes/common.inc Formats a date, using a date type or a custom date format string. 65
date_iso8601 drupal/core/includes/common.inc Returns an ISO8601 formatted date based on the given date. 5
_format_date_callback drupal/core/includes/common.inc Translates a formatted date string. 1 1
url drupal/core/includes/common.inc Generates an internal or external URL. 302 23
url_is_external drupal/core/includes/common.inc Returns TRUE if a path is external to Drupal (e.g. http://example.com). 7
drupal_http_header_attributes drupal/core/includes/common.inc Formats an attribute string for an HTTP header. 1
l drupal/core/includes/common.inc Formats an internal or external URL link as an HTML anchor tag. 138 31
drupal_exit drupal/core/includes/common.inc Performs end-of-request tasks. 12
drupal_map_assoc drupal/core/includes/common.inc Forms an associative array from a linear array. 51
drupal_set_time_limit drupal/core/includes/common.inc Attempts to set the PHP maximum execution time. 4
drupal_get_path drupal/core/includes/common.inc Returns the path to a system item (module, theme, etc.). 178 1
base_path drupal/core/includes/common.inc Returns the base URL path (i.e., directory) of the Drupal installation. 28
drupal_add_html_head_link drupal/core/includes/common.inc Adds a LINK tag with a distinct 'rel' attribute to the page's HEAD. 9
drupal_add_css drupal/core/includes/common.inc Adds a cascading stylesheet to the stylesheet queue. 35 4
drupal_get_css drupal/core/includes/common.inc Returns a themed representation of all stylesheets to attach to the page. 15
drupal_sort_css_js drupal/core/includes/common.inc Sorts CSS and JavaScript resources. 2
drupal_group_css drupal/core/includes/common.inc Grouping callback: Groups CSS items by their types, media, and browsers. 1
drupal_aggregate_css drupal/core/includes/common.inc Aggregation callback: Aggregates CSS files and inline content. 1
drupal_pre_render_styles drupal/core/includes/common.inc Pre-render callback: Adds the elements needed for CSS tags to be rendered. 1
drupal_build_css_cache drupal/core/includes/common.inc Aggregates and optimizes CSS files into a cache file in the files directory. 1
_drupal_build_css_path drupal/core/includes/common.inc Prefixes all paths within a CSS file for drupal_build_css_cache(). 2 2
drupal_load_stylesheet drupal/core/includes/common.inc Loads the stylesheet and resolves all @import commands. 4
drupal_load_stylesheet_content drupal/core/includes/common.inc Processes the contents of a stylesheet for aggregation. 3
_drupal_load_stylesheet drupal/core/includes/common.inc Loads stylesheets recursively and returns contents with corrected paths. 1
drupal_clear_css_cache drupal/core/includes/common.inc Deletes old cached CSS files. 3 1
drupal_delete_file_if_stale drupal/core/includes/common.inc Deletes files modified more than a set time ago. 2
drupal_clean_css_identifier drupal/core/includes/common.inc Prepares a string for use as a CSS identifier (element, class, or ID name). 15 1
drupal_html_class drupal/core/includes/common.inc Prepares a string for use as a valid class name. 17

Pages

Other projects