Functions to validate user input.
| Name | Location | Description |
|---|---|---|
| base_path | drupal/includes/common.inc | Returns the base URL path of the Drupal installation. At the very least, this will always default to /. |
| check_url | drupal/includes/common.inc | Prepare a URL for use in an HTML attribute. Strips harmful protocols. |
| drupal_add_css | drupal/includes/common.inc | Adds a CSS file to the stylesheet queue. |
| drupal_add_js | drupal/includes/common.inc | Add a JavaScript file, setting or inline code to the page. |
| drupal_add_link | drupal/includes/common.inc | Add a <link> tag to the page's HEAD. |
| drupal_add_tabledrag | drupal/includes/common.inc | Assist in adding the tableDrag JavaScript behavior to a themed table. |
| drupal_alter | drupal/includes/common.inc | Hands off structured Drupal arrays to type-specific *_alter implementations. |
| drupal_attributes | drupal/includes/common.inc | Format an attribute string to insert in a tag. |
| drupal_build_css_cache | drupal/includes/common.inc | Aggregate and optimize CSS files, putting them in the files directory. |
| drupal_build_js_cache | drupal/includes/common.inc | Aggregate JS files, putting them in the files directory. |
| drupal_clear_css_cache | drupal/includes/common.inc | Delete all cached CSS files. |
| drupal_clear_js_cache | drupal/includes/common.inc | Delete all cached JS files. |
| drupal_common_theme | drupal/includes/common.inc | Provide theme registration for themes across .inc files. |
| drupal_cron_cleanup | drupal/includes/common.inc | Shutdown function for cron cleanup. |
| drupal_cron_run | drupal/includes/common.inc | Executes a cron run when called |
| drupal_eval | drupal/includes/common.inc | Evaluate a string of PHP code. |
| drupal_explode_tags | drupal/includes/common.inc | Explode a string of given tags into an array. |
| drupal_flush_all_caches | drupal/includes/common.inc | Flush all cached data on the site. |
| drupal_get_css | drupal/includes/common.inc | Returns a themed representation of all stylesheets that should be attached to the page. |
| drupal_get_js | drupal/includes/common.inc | Returns a themed presentation of all JavaScript code for the current page. |
| drupal_get_path | drupal/includes/common.inc | Returns the path to a system item (module, theme, etc.). |
| drupal_get_private_key | drupal/includes/common.inc | Ensure the private key variable used to generate tokens is set. |
| drupal_get_schema | drupal/includes/bootstrap.inc | Get the schema definition of a table, or the whole database schema. |
| drupal_get_schema_unprocessed | drupal/includes/common.inc | Returns the unprocessed and unaltered version of a module's schema. |
| drupal_get_token | drupal/includes/common.inc | Generate a token based on $value, the current user session and private key. |
| drupal_implode_tags | drupal/includes/common.inc | Implode an array of tags into a string. |
| drupal_install_schema | drupal/includes/common.inc | Create all tables that a module defines in its hook_schema(). |
| drupal_json | drupal/includes/common.inc | Return data in JSON format. |
| drupal_load_stylesheet | drupal/includes/common.inc | Loads the stylesheet and resolves all @import commands. |
| drupal_map_assoc | drupal/includes/common.inc | Form an associative array from a linear array. |
| drupal_page_footer | drupal/includes/common.inc | Perform end-of-request tasks. |
| drupal_parse_info_file | drupal/includes/common.inc | Parse Drupal info file format. |
| drupal_render | drupal/includes/common.inc | Renders HTML given a structured array tree. |
| drupal_schema_fields_sql | drupal/includes/common.inc | Retrieve a list of fields from a table schema. The list is suitable for use in a SQL query. |
| drupal_system_listing | drupal/includes/common.inc | Return an array of system file objects. |
| drupal_to_js | drupal/includes/common.inc | Converts a PHP variable into its Javascript equivalent. |
| drupal_uninstall_schema | drupal/includes/common.inc | Remove all tables that a module defines in its hook_schema(). |
| drupal_urlencode | drupal/includes/common.inc | Wrapper around urlencode() which avoids Apache quirks. |
| drupal_valid_token | drupal/includes/common.inc | Validate a token based on $value, the current user session and private key. |
| drupal_write_record | drupal/includes/common.inc | Save a record to the database based upon the schema. |
| element_child | drupal/includes/common.inc | Check if the key is a child. |
| element_children | drupal/includes/common.inc | Get keys of a structured array tree element that are not properties (i.e., do not begin with '#'). |
| element_properties | drupal/includes/common.inc | Get properties of a structured array element. Properties begin with '#'. |
| element_property | drupal/includes/common.inc | Check if the key is a property. |
| element_sort | drupal/includes/common.inc | Function used by uasort to sort structured arrays by weight. |
| flood_is_allowed | drupal/includes/common.inc | Check if the current visitor (hostname/IP) is allowed to proceed with the specified event. |
| flood_register_event | drupal/includes/common.inc | Register an event for the current visitor (hostname/IP) to the flood control mechanism. |
| format_date | drupal/includes/common.inc | Format a date with the given configured format or a custom format string. |
| format_interval | drupal/includes/common.inc | Format a time interval with the requested granularity. |
| format_plural | drupal/includes/common.inc | Format a string containing a count of items. |
| format_rss_channel | drupal/includes/common.inc | Formats an RSS channel. |
| format_rss_item | drupal/includes/common.inc | Format a single RSS item. |
| format_size | drupal/includes/common.inc | Generate a string representation for the given byte count. |
| format_xml_elements | drupal/includes/common.inc | Format XML elements. |
| l | drupal/includes/common.inc | Format an internal Drupal link. |
| page_set_cache | drupal/includes/common.inc | Store the current page in the cache. |
| parse_size | drupal/includes/common.inc | Parse a given byte count. |
| url | drupal/includes/common.inc | Generate a URL from a Drupal menu path. Will also pass-through existing URLs. |
| valid_email_address | drupal/includes/common.inc | Verify the syntax of the given e-mail address. |
| valid_url | drupal/includes/common.inc | Verify the syntax of the given URL. |
| watchdog_severity_levels | drupal/includes/common.inc | Severity levels, as defined in RFC 3164: http://www.ietf.org/rfc/rfc3164.txt. |
| xmlrpc | drupal/includes/common.inc | Performs one or more XML-RPC request(s). |
| _drupal_build_css_path | drupal/includes/common.inc | Helper function for drupal_build_css_cache(). |
| _drupal_flush_css_js | drupal/includes/common.inc | Helper function to change query-strings on css/js files. |
| _drupal_initialize_schema | drupal/includes/common.inc | Fill in required default values for table definitions returned by hook_schema(). |
| _drupal_load_stylesheet | drupal/includes/common.inc | Loads stylesheets recursively and returns contents with corrected paths. |