Functions to validate user input.

Functions

Namesort iconLocationDescription
base_pathdrupal/includes/common.incReturns the base URL path of the Drupal installation. At the very least, this will always default to /.
check_urldrupal/includes/common.incPrepare a URL for use in an HTML attribute. Strips harmful protocols.
drupal_add_cssdrupal/includes/common.incAdds a CSS file to the stylesheet queue.
drupal_add_jsdrupal/includes/common.incAdd a JavaScript file, setting or inline code to the page.
drupal_add_linkdrupal/includes/common.incAdd a <link> tag to the page's HEAD.
drupal_add_tabledragdrupal/includes/common.incAssist in adding the tableDrag JavaScript behavior to a themed table.
drupal_alterdrupal/includes/common.incHands off structured Drupal arrays to type-specific *_alter implementations.
drupal_attributesdrupal/includes/common.incFormat an attribute string to insert in a tag.
drupal_build_css_cachedrupal/includes/common.incAggregate and optimize CSS files, putting them in the files directory.
drupal_build_js_cachedrupal/includes/common.incAggregate JS files, putting them in the files directory.
drupal_clear_css_cachedrupal/includes/common.incDelete all cached CSS files.
drupal_clear_js_cachedrupal/includes/common.incDelete all cached JS files.
drupal_common_themedrupal/includes/common.incProvide theme registration for themes across .inc files.
drupal_cron_cleanupdrupal/includes/common.incShutdown function for cron cleanup.
drupal_cron_rundrupal/includes/common.incExecutes a cron run when called
drupal_evaldrupal/includes/common.incEvaluate a string of PHP code.
drupal_explode_tagsdrupal/includes/common.incExplode a string of given tags into an array.
drupal_flush_all_cachesdrupal/includes/common.incFlush all cached data on the site.
drupal_get_cssdrupal/includes/common.incReturns a themed representation of all stylesheets that should be attached to the page.
drupal_get_jsdrupal/includes/common.incReturns a themed presentation of all JavaScript code for the current page.
drupal_get_pathdrupal/includes/common.incReturns the path to a system item (module, theme, etc.).
drupal_get_private_keydrupal/includes/common.incEnsure the private key variable used to generate tokens is set.
drupal_get_schemadrupal/includes/bootstrap.incGet the schema definition of a table, or the whole database schema.
drupal_get_schema_unprocesseddrupal/includes/common.incReturns the unprocessed and unaltered version of a module's schema.
drupal_get_tokendrupal/includes/common.incGenerate a token based on $value, the current user session and private key.
drupal_implode_tagsdrupal/includes/common.incImplode an array of tags into a string.
drupal_install_schemadrupal/includes/common.incCreate all tables that a module defines in its hook_schema().
drupal_jsondrupal/includes/common.incReturn data in JSON format.
drupal_load_stylesheetdrupal/includes/common.incLoads the stylesheet and resolves all @import commands.
drupal_map_assocdrupal/includes/common.incForm an associative array from a linear array.
drupal_page_footerdrupal/includes/common.incPerform end-of-request tasks.
drupal_parse_info_filedrupal/includes/common.incParse Drupal info file format.
drupal_renderdrupal/includes/common.incRenders HTML given a structured array tree.
drupal_schema_fields_sqldrupal/includes/common.incRetrieve a list of fields from a table schema. The list is suitable for use in a SQL query.
drupal_system_listingdrupal/includes/common.incReturn an array of system file objects.
drupal_to_jsdrupal/includes/common.incConverts a PHP variable into its Javascript equivalent.
drupal_uninstall_schemadrupal/includes/common.incRemove all tables that a module defines in its hook_schema().
drupal_urlencodedrupal/includes/common.incWrapper around urlencode() which avoids Apache quirks.
drupal_valid_tokendrupal/includes/common.incValidate a token based on $value, the current user session and private key.
drupal_write_recorddrupal/includes/common.incSave a record to the database based upon the schema.
element_childdrupal/includes/common.incCheck if the key is a child.
element_childrendrupal/includes/common.incGet keys of a structured array tree element that are not properties (i.e., do not begin with '#').
element_propertiesdrupal/includes/common.incGet properties of a structured array element. Properties begin with '#'.
element_propertydrupal/includes/common.incCheck if the key is a property.
element_sortdrupal/includes/common.incFunction used by uasort to sort structured arrays by weight.
flood_is_alloweddrupal/includes/common.incCheck if the current visitor (hostname/IP) is allowed to proceed with the specified event.
flood_register_eventdrupal/includes/common.incRegister an event for the current visitor (hostname/IP) to the flood control mechanism.
format_datedrupal/includes/common.incFormat a date with the given configured format or a custom format string.
format_intervaldrupal/includes/common.incFormat a time interval with the requested granularity.
format_pluraldrupal/includes/common.incFormat a string containing a count of items.
format_rss_channeldrupal/includes/common.incFormats an RSS channel.
format_rss_itemdrupal/includes/common.incFormat a single RSS item.
format_sizedrupal/includes/common.incGenerate a string representation for the given byte count.
format_xml_elementsdrupal/includes/common.incFormat XML elements.
ldrupal/includes/common.incFormat an internal Drupal link.
page_set_cachedrupal/includes/common.incStore the current page in the cache.
parse_sizedrupal/includes/common.incParse a given byte count.
urldrupal/includes/common.incGenerate a URL from a Drupal menu path. Will also pass-through existing URLs.
valid_email_addressdrupal/includes/common.incVerify the syntax of the given e-mail address.
valid_urldrupal/includes/common.incVerify the syntax of the given URL.
watchdog_severity_levelsdrupal/includes/common.incSeverity levels, as defined in RFC 3164: http://www.ietf.org/rfc/rfc3164.txt.
xmlrpcdrupal/includes/common.incPerforms one or more XML-RPC request(s).
_drupal_build_css_pathdrupal/includes/common.incHelper function for drupal_build_css_cache().
_drupal_flush_css_jsdrupal/includes/common.incHelper function to change query-strings on css/js files.
_drupal_initialize_schemadrupal/includes/common.incFill in required default values for table definitions returned by hook_schema().
_drupal_load_stylesheetdrupal/includes/common.incLoads stylesheets recursively and returns contents with corrected paths.