Functions

Primary tabs

Name Locationsort descending Description Direct uses Strings
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
drupal_add_library drupal/core/includes/common.inc Adds multiple JavaScript or CSS files at the same time. 33 2
drupal_get_library drupal/core/includes/common.inc Retrieves information for a JavaScript/CSS library. 5 1
drupal_add_tabledrag drupal/core/includes/common.inc Assists in adding the tableDrag JavaScript behavior to a themed table. 9
drupal_build_js_cache drupal/core/includes/common.inc Aggregates JavaScript files into a cache file in the files directory. 3
drupal_clear_js_cache drupal/core/includes/common.inc Deletes old cached JavaScript files and variables. 2
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. 25
drupal_get_private_key drupal/core/includes/common.inc Ensures the private key variable used to generate tokens is set. 4
drupal_get_token drupal/core/includes/common.inc Generates a token based on $value, the user session, and the private key. 13
drupal_valid_token drupal/core/includes/common.inc Validates a token based on $value, the user session, and the private key. 12
_drupal_bootstrap_code drupal/core/includes/common.inc Loads code for subsystems and modules, and registers stream wrappers. 1

Pages

Other projects