Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
drupal_pre_render_markup includes/common.inc #pre_render callback to append contents in #markup to #children. 1
drupal_pre_render_scripts includes/common.inc The #pre_render callback for the "scripts" element. 1
drupal_pre_render_styles includes/common.inc #pre_render callback to add the elements needed for CSS tags to be rendered. 1
drupal_process_attached includes/common.inc Adds attachments to a render() structure. 3
drupal_process_form includes/form.inc Processes a form submission. 8
drupal_process_states includes/common.inc Adds JavaScript to change the state of an element based on another element. 1
drupal_random_bytes includes/bootstrap.inc Returns a string of highly randomized bytes (over the full 8-bit range). 9
drupal_random_key includes/bootstrap.inc Returns a URL-safe, base64 encoded string of highly randomized bytes (over the full 8-bit range). 13
drupal_realpath includes/file.inc Resolves the absolute filepath of a local URI or filepath. 52
drupal_rebuild_form includes/form.inc Constructs a new $form from the information in $form_state. 2
drupal_redirect_form includes/form.inc Redirects the user to a URL after a form has been processed. 2
drupal_region_class includes/common.inc Provides a standard HTML class name that identifies a page region. 2
drupal_register_shutdown_function includes/bootstrap.inc Registers a function for execution on shutdown. 13
drupal_render includes/common.inc Renders HTML given a structured array tree. 93 1
drupal_render_cache_by_query includes/common.inc Prepares an element for caching based on a query. 1
drupal_render_cache_get includes/common.inc Gets the rendered output of a renderable element from the cache. 2
drupal_render_cache_set includes/common.inc Caches the rendered output of a renderable element. 1
drupal_render_children includes/common.inc Renders children of an element and concatenates them. 31
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. 269
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. 67
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

Other projects


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