Functions

Primary tabs

Name Locationsort descending Description Direct uses Strings
drupal_strip_dangerous_protocols drupal/core/includes/common.inc Strips dangerous protocols (e.g. 'javascript:') from a URI. 5
check_url drupal/core/includes/common.inc Strips dangerous protocols from a URI and encodes it for output to HTML. 21
filter_xss_admin drupal/core/includes/common.inc Applies a very permissive XSS/HTML filter for admin-only use. 43 1
filter_xss drupal/core/includes/common.inc Filters HTML to prevent cross-site-scripting (XSS) vulnerabilities. 23
filter_xss_bad_protocol drupal/core/includes/common.inc Processes an HTML attribute value and strips dangerous protocols from URLs.
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. 68
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. 32 7
format_date drupal/core/includes/common.inc Formats a date, using a date type or a custom date format string. 68
date_iso8601 drupal/core/includes/common.inc Returns an ISO8601 formatted date based on the given date. 7
_format_date_callback drupal/core/includes/common.inc Translates a formatted date string. 1 1
datetime_default_format_type drupal/core/includes/common.inc Retrieves the correct datetime format type for this system. 3
url drupal/core/includes/common.inc Generates an internal or external URL. 315 26
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. 141 34
drupal_map_assoc drupal/core/includes/common.inc Forms an associative array from a linear array. 63
drupal_set_time_limit drupal/core/includes/common.inc Attempts to set the PHP maximum execution time. 5
drupal_get_path drupal/core/includes/common.inc Returns the path to a system item (module, theme, etc.). 214 1
base_path drupal/core/includes/common.inc Returns the base URL path (i.e., directory) of the Drupal installation. 34
drupal_add_html_head_link drupal/core/includes/common.inc Adds a LINK tag with a distinct 'rel' attribute to the page's HEAD. 7
drupal_add_css drupal/core/includes/common.inc Adds a cascading stylesheet to the stylesheet queue. 31 6
drupal_get_css drupal/core/includes/common.inc Returns a themed representation of all stylesheets to attach to the page. 16
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. 4
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). 18 1
drupal_html_class drupal/core/includes/common.inc Prepares a string for use as a valid class name. 22
drupal_html_id drupal/core/includes/common.inc Prepares a string for use as a valid HTML ID and guarantees uniqueness. 21 3
drupal_add_js drupal/core/includes/common.inc Adds a JavaScript file, setting, or inline code to the page. 51 12
drupal_js_defaults drupal/core/includes/common.inc Constructs an array of the defaults that are used for JavaScript items. 3
drupal_get_js drupal/core/includes/common.inc Returns a themed presentation of all JavaScript code for the current page. 24
drupal_merge_js_settings drupal/core/includes/common.inc Merges an array of settings arrays into a single settings array. 5
drupal_pre_render_scripts drupal/core/includes/common.inc #pre_render callback to add the elements needed for JavaScript tags to be rendered. 1
drupal_group_js drupal/core/includes/common.inc Default callback to group JavaScript items. 1
drupal_aggregate_js drupal/core/includes/common.inc Default callback to aggregate JavaScript files. 1
drupal_process_attached drupal/core/includes/common.inc Adds attachments to a render() structure. 4
drupal_process_states drupal/core/includes/common.inc Adds JavaScript to change the state of an element based on another element. 1

Pages

Other projects