Functions - 7.x - drupal

Primary tabs

Title Deprecated File name Summary Direct uses Strings
db_index_exists includes/database/database.inc Checks if an index exists in the given table. 9
db_insert includes/database/database.inc Returns a new InsertQuery object for the active database. 3
db_installer_object includes/install.inc Returns a database installer object. 1
db_like includes/database/database.inc Escapes characters that work as wildcard characters in a LIKE pattern. 6
db_merge includes/database/database.inc Returns a new MergeQuery object for the active database.
db_next_id includes/database/database.inc Retrieves a unique id. 4
db_or includes/database/database.inc Returns a new DatabaseCondition, set to "OR" all conditions together. 9
db_query includes/database/database.inc Executes an arbitrary query string against the active database. 133 2
db_query_range includes/database/database.inc Executes a query against the active database, restricted to a range. 13 1
db_query_temporary includes/database/database.inc Executes a SELECT query string and saves the result set to a temporary table. 2
db_rename_table includes/database/database.inc Renames a table. 14
db_run_tasks includes/install.inc Ensures the environment for a Drupal database on a predefined connection. 2
db_select includes/database/database.inc Returns a new SelectQuery object for the active database. 115
db_set_active includes/database/database.inc Sets a new active database. 2
db_table_exists includes/database/database.inc Checks if a table exists. 24
db_transaction includes/database/database.inc Returns a new transaction object for the active database. 17
db_truncate includes/database/database.inc Returns a new TruncateQuery object for the active database. 1
db_update includes/database/database.inc Returns a new UpdateQuery object for the active database. 2
db_xor includes/database/database.inc Returns a new DatabaseCondition, set to "XOR" all conditions together.
debug includes/common.inc Outputs debug information. 1 13
decode_entities includes/unicode.inc Decodes all HTML entities (including numerical ones) to regular UTF-8 bytes. 16 1
drupal_access_denied includes/common.inc Delivers an "access denied" error to the browser. 7
drupal_add_css includes/common.inc Adds a cascading stylesheet to the stylesheet queue. 42 3
drupal_add_feed includes/common.inc Adds a feed URL for the current page. 9
drupal_add_html_head includes/common.inc Adds output to the HEAD tag of the HTML page. 7
drupal_add_html_head_link includes/common.inc Adds a LINK tag with distinct attributes to the page's HEAD. 9
drupal_add_http_header includes/bootstrap.inc Sets an HTTP response header for the current page. 28
drupal_add_js includes/common.inc Adds a JavaScript file, setting, or inline code to the page. 51 8
drupal_add_library includes/common.inc Adds multiple JavaScript or CSS files at the same time. 13 3
drupal_add_region_content includes/common.inc Adds content to a specified region. 5
drupal_add_tabledrag includes/common.inc Assists in adding the tableDrag JavaScript behavior to a themed table. 16
drupal_aggregate_css includes/common.inc Default callback to aggregate CSS files and inline content. 1
drupal_alter includes/module.inc Passes alterable variables to specific hook_TYPE_alter() implementations. 93 3
drupal_anonymous_user includes/bootstrap.inc Generates a default anonymous $user object. 13
drupal_array_diff_assoc_recursive includes/common.inc Recursively computes the difference of arrays with additional index check. 1
drupal_array_get_nested_value includes/common.inc Retrieves a value from a nested array with variable depth. 16
drupal_array_merge_deep includes/bootstrap.inc Merges multiple arrays, recursively, and returns the merged array. 4
drupal_array_merge_deep_array includes/bootstrap.inc Merges multiple arrays, recursively, and returns the merged array. 4
drupal_array_nested_key_exists includes/common.inc Determines whether a nested array contains the requested keys. 2
drupal_array_set_nested_value includes/common.inc Sets a value in a nested array with variable depth. 7
drupal_attributes includes/common.inc Converts an associative array to an XML/HTML tag attribute string. 41
drupal_autoload_class includes/bootstrap.inc Confirms that a class is available. 1 2
drupal_autoload_interface includes/bootstrap.inc Confirms that an interface is available. 1 2
drupal_autoload_test_registry_files_alter modules/simpletest/tests/drupal_autoload_test/drupal_autoload_test.module Implements hook_registry_files_alter().
drupal_autoload_trait includes/bootstrap.inc Confirms that a trait is available. 1 1
drupal_base64_encode includes/bootstrap.inc Returns a URL-safe, base64 encoded version of the supplied string. 1
drupal_basename includes/file.inc Gets the filename from a given path. 32
drupal_block_denied includes/bootstrap.inc Handles denied users. 1
drupal_bootstrap includes/bootstrap.inc Ensures Drupal is bootstrapped to the specified phase. 16
drupal_build_css_cache includes/common.inc Aggregates and optimizes CSS files into a cache file in the files directory. 1

Other projects


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