Functions

Primary tabs

Name Location Description Direct uses Stringssort descending
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 drupal/core/includes/common.inc Filters HTML to prevent cross-site-scripting (XSS) vulnerabilities. 26
_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_date drupal/core/includes/common.inc Formats a date, using a date type or a custom date format string. 65
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
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
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_get_css drupal/core/includes/common.inc Returns a themed representation of all stylesheets to attach to the page. 15
drupal_build_css_cache drupal/core/includes/common.inc Aggregates and optimizes CSS files into a cache file in the files directory. 1
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_html_class drupal/core/includes/common.inc Prepares a string for use as a valid class name. 17
drupal_region_class drupal/core/includes/common.inc Provides a standard HTML class name that identifies a page region. 2
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. 23
drupal_process_attached drupal/core/includes/common.inc Adds attachments to a render() structure. 3
drupal_process_states drupal/core/includes/common.inc Adds JavaScript to change the state of an element based on another element. 1
drupal_add_tabledrag drupal/core/includes/common.inc Assists in adding the tableDrag JavaScript behavior to a themed table. 18
drupal_build_js_cache drupal/core/includes/common.inc Aggregates JavaScript files into a cache file in the files directory. 3
drupal_json_encode drupal/core/includes/common.inc Converts a PHP variable into its JavaScript equivalent. 8
drupal_json_decode drupal/core/includes/common.inc Converts an HTML-safe JSON string into its PHP equivalent. 14
drupal_get_private_key drupal/core/includes/common.inc Ensures the private key variable used to generate tokens is set. 3
drupal_get_token drupal/core/includes/common.inc Generates a token based on $value, the user session, and the private key. 12
drupal_valid_token drupal/core/includes/common.inc Validates a token based on $value, the user session, and the private key. 11
_drupal_bootstrap_code drupal/core/includes/common.inc Loads code for subsystems and modules, and registers stream wrappers. 1
_drupal_bootstrap_full drupal/core/includes/common.inc Temporary BC function for scripts not using DrupalKernel. 2
drupal_page_set_cache drupal/core/includes/common.inc Stores the current page in the cache. 1
drupal_cron_run drupal/core/includes/common.inc Executes a cron run when called. 9
drupal_set_page_content drupal/core/includes/common.inc Sets the main page content value for later use. 6
drupal_render_page drupal/core/includes/common.inc Renders the page, including all theming. 6
drupal_render_children drupal/core/includes/common.inc Renders children of an element and concatenates them. 42
drupal_render_cache_get drupal/core/includes/common.inc Gets the rendered output of a renderable element from the cache. 2
drupal_render_cache_set drupal/core/includes/common.inc Caches the rendered output of a renderable element. 1
drupal_render_collect_attached drupal/core/includes/common.inc Collects #attached for an element and its children into a single array. 2
drupal_render_cache_by_query drupal/core/includes/common.inc Prepares an element for caching based on a query. 1

Pages

Other projects