Functions - 7.x - drupal
| Title | Deprecated | File name | Summary | Direct uses | Strings |
|---|---|---|---|---|---|
| db_create_table | includes/ |
Creates a new table from a Drupal table definition. | 37 | ||
| db_delete | includes/ |
Returns a new DeleteQuery object for the active database. | 3 | ||
| db_driver | includes/ |
Retrieves the name of the currently active database driver. | 2 | ||
| db_drop_field | includes/ |
Drops a field. | 19 | ||
| db_drop_index | includes/ |
Drops an index. | 22 | ||
| db_drop_primary_key | includes/ |
Drops the primary key of a database table. | 8 | ||
| db_drop_table | includes/ |
Drops a table. | 25 | ||
| db_drop_unique_key | includes/ |
Drops a unique key. | 6 | ||
| db_escape_field | includes/ |
Restricts a dynamic column or constraint name to safe characters. | |||
| db_escape_table | includes/ |
Restricts a dynamic table name to safe characters. | 1 | ||
| db_field_exists | includes/ |
Checks if a column exists in the given table. | 8 | ||
| db_field_names | includes/ |
Returns an array of field names from an array of key/index column specifiers. | |||
| db_field_set_default | includes/ |
Sets the default value for a field. | 1 | ||
| db_field_set_no_default | includes/ |
Sets a field to have no default value. | 1 | ||
| db_find_tables | includes/ |
Finds all tables that are like the specified base table name. | |||
| db_find_tables_d8 | includes/ |
Finds all tables that are like the specified base table name. This is a backport of the change made to db_find_tables in Drupal 8 to work with virtual, un-prefixed table names. The original function is retained for Backwards Compatibility. | 3 | ||
| db_ignore_slave | includes/ |
Sets a session variable specifying the lag time for ignoring a slave server. | 2 | ||
| db_index_exists | includes/ |
Checks if an index exists in the given table. | 9 | ||
| db_insert | includes/ |
Returns a new InsertQuery object for the active database. | 3 | ||
| db_installer_object | includes/ |
Returns a database installer object. | 1 | ||
| db_like | includes/ |
Escapes characters that work as wildcard characters in a LIKE pattern. | 6 | ||
| db_merge | includes/ |
Returns a new MergeQuery object for the active database. | |||
| db_next_id | includes/ |
Retrieves a unique id. | 4 | ||
| db_or | includes/ |
Returns a new DatabaseCondition, set to "OR" all conditions together. | 9 | ||
| db_query | includes/ |
Executes an arbitrary query string against the active database. | 133 | 2 | |
| db_query_range | includes/ |
Executes a query against the active database, restricted to a range. | 13 | 1 | |
| db_query_temporary | includes/ |
Executes a SELECT query string and saves the result set to a temporary table. | 2 | ||
| db_rename_table | includes/ |
Renames a table. | 14 | ||
| db_run_tasks | includes/ |
Ensures the environment for a Drupal database on a predefined connection. | 2 | ||
| db_select | includes/ |
Returns a new SelectQuery object for the active database. | 115 | ||
| db_set_active | includes/ |
Sets a new active database. | 2 | ||
| db_table_exists | includes/ |
Checks if a table exists. | 24 | ||
| db_transaction | includes/ |
Returns a new transaction object for the active database. | 17 | ||
| db_truncate | includes/ |
Returns a new TruncateQuery object for the active database. | 1 | ||
| db_update | includes/ |
Returns a new UpdateQuery object for the active database. | 2 | ||
| db_xor | includes/ |
Returns a new DatabaseCondition, set to "XOR" all conditions together. | |||
| debug | includes/ |
Outputs debug information. | 1 | 13 | |
| decode_entities | includes/ |
Decodes all HTML entities (including numerical ones) to regular UTF-8 bytes. | 16 | 1 | |
| drupal_access_denied | includes/ |
Delivers an "access denied" error to the browser. | 7 | ||
| drupal_add_css | includes/ |
Adds a cascading stylesheet to the stylesheet queue. | 43 | 3 | |
| drupal_add_feed | includes/ |
Adds a feed URL for the current page. | 9 | ||
| drupal_add_html_head | includes/ |
Adds output to the HEAD tag of the HTML page. | 7 | ||
| drupal_add_html_head_link | includes/ |
Adds a LINK tag with distinct attributes to the page's HEAD. | 9 | ||
| drupal_add_http_header | includes/ |
Sets an HTTP response header for the current page. | 28 | ||
| drupal_add_js | includes/ |
Adds a JavaScript file, setting, or inline code to the page. | 51 | 8 | |
| drupal_add_library | includes/ |
Adds multiple JavaScript or CSS files at the same time. | 13 | 3 | |
| drupal_add_region_content | includes/ |
Adds content to a specified region. | 5 | ||
| drupal_add_tabledrag | includes/ |
Assists in adding the tableDrag JavaScript behavior to a themed table. | 16 | ||
| drupal_aggregate_css | includes/ |
Default callback to aggregate CSS files and inline content. | 1 | ||
| drupal_alter | includes/ |
Passes alterable variables to specific hook_TYPE_alter() implementations. | 94 | 3 |
Pagination
- Previous page
- Page 13
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.