Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
drupal_render_cid_create includes/common.inc Creates the cache ID for a renderable element. 2
drupal_render_cid_parts includes/common.inc Returns cache ID parts for building a cache ID. 3
drupal_render_collect_attached includes/common.inc Collects #attached for an element and its children into a single array. 1
drupal_render_page includes/common.inc Renders the page, including all theming. 2
drupal_required_modules includes/module.inc Returns an array of modules required by core. 1
drupal_requirements_severity includes/install.inc Extracts the highest severity from the requirements array. 4
drupal_requirements_url includes/install.inc Returns a URL for proceeding to the next page after a requirements problem. 2
drupal_retrieve_form includes/form.inc Retrieves the structured array that defines a given form. 3
drupal_rewrite_settings includes/install.inc Replaces values in settings.php with values in the submitted array. 1
drupal_rmdir includes/file.inc Removes a directory. 6
drupal_save_session includes/session.inc Determines whether to save session data of the current request. 17
drupal_schema_fields_sql includes/common.inc Retrieves a list of fields from a table schema. 1
drupal_schema_field_types includes/common.inc Retrieves the type for every field in a table schema. 1
drupal_send_headers includes/bootstrap.inc Sends the HTTP response headers that were previously set, adding defaults. 4
drupal_serve_page_from_cache includes/bootstrap.inc Sets HTTP headers in preparation for a cached page response. 2
drupal_session_commit includes/session.inc Commits the current session, if necessary. 4 1
drupal_session_destroy_uid includes/session.inc Ends a specific user's session(s). 2
drupal_session_id includes/session.inc Session ids are hashed by default before being stored in the database. 3
drupal_session_initialize includes/session.inc Initializes the session handler, starting a session if needed. 1
drupal_session_regenerate includes/session.inc Called when an anonymous user becomes authenticated or vice-versa. 3
drupal_session_start includes/session.inc Starts a session forcefully, preserving already set session data. 5
drupal_session_started includes/session.inc Returns whether a session has been started. 4
drupal_setcookie includes/bootstrap.inc Drupal's wrapper around PHP's setcookie() function. 4
drupal_settings_initialize includes/bootstrap.inc Sets the base URL, cookie domain, and session name from configuration. 2
drupal_set_breadcrumb includes/common.inc Sets the breadcrumb trail for the current page. 8
drupal_set_installed_schema_version includes/install.inc Update the installed version information for a module. 7
drupal_set_message includes/bootstrap.inc Sets a message to display to the user. 268
drupal_set_page_content includes/common.inc Sets the main page content value for later use. 5
drupal_set_time_limit includes/common.inc Attempts to set the PHP maximum execution time. 5
drupal_set_title includes/bootstrap.inc Sets the title of the current page. 66
drupal_site_offline includes/common.inc Delivers a "site is under maintenance" message to the browser. 1
drupal_sort_css_js includes/common.inc Sorts CSS and JavaScript resources. 2
drupal_sort_title includes/common.inc Array sorting callback; sorts elements by 'title' key. 1
drupal_sort_weight includes/common.inc Sorts a structured array by the 'weight' element. 8
drupal_static includes/bootstrap.inc Provides central static variable storage. 186
drupal_static_reset includes/bootstrap.inc Resets one or all centrally stored static variable(s). 112
drupal_strip_dangerous_protocols includes/common.inc Strips dangerous protocols (e.g. 'javascript:') from a URI. 8
drupal_strlen includes/unicode.inc Counts the number of characters in a UTF-8 string. 21
drupal_strtolower includes/unicode.inc Lowercase a UTF-8 string. 49
drupal_strtoupper includes/unicode.inc Uppercase a UTF-8 string. 5 1
drupal_substr includes/unicode.inc Cuts off a piece of a string based on character indices and counts. 12 1
drupal_system_listing includes/common.inc Returns information about system object files (modules, themes, etc.). 7 1
drupal_tempnam includes/file.inc Creates a file with a unique filename in the specified directory. 6
drupal_theme_access includes/theme.inc Determines if a theme is available to use. 6 1
drupal_theme_initialize includes/theme.inc Initializes the theme system by loading the theme. 15
drupal_theme_rebuild includes/theme.inc Forces the system to rebuild the theme registry. 8
drupal_trigger_fatal_error includes/bootstrap.inc Invoke trigger_error() using a fatal error that will terminate the request. 3 2
drupal_truncate_bytes includes/unicode.inc Truncates a UTF-8-encoded string safely to a number of bytes. 1
drupal_ucfirst includes/unicode.inc Capitalizes the first letter of a UTF-8 string. 6
drupal_uninstall_modules includes/install.inc Uninstalls a given list of disabled modules. 5

Other projects


Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.