db_query
- Versions
- 4.6 – 6
db_query($query)- 7
db_query($query, array $args = array(), array $options = array())
Execute an arbitrary query string against the active database.
Do not use this function for INSERT, UPDATE, or DELETE queries. Those should be handled via the appropriate query builder factory. Use this function for SELECT queries that do not require a query builder.
See also
DatabaseConnection::defaultOptions()
Parameters
$query The prepared statement query to run. Although it will accept both named and unnamed placeholders, named placeholders are strongly preferred as they are more self-documenting.
$args An array of values to substitute into the query. If the query uses named placeholders, this is an associative array in any order. If the query uses unnamed placeholders (?), this is an indexed array and the order must match the order of placeholders in the query string.
$options An array of options to control how the query operates.
Return value
A prepared statement object, already executed.
Related topics
- Database abstraction layer
- Allow the use of different database servers using the same code base.
▾ 268 functions call db_query()
- actions_do in includes/actions.inc
- Performs a given list of actions by executing their callback functions.
- actions_function_lookup in includes/actions.inc
- Given an md5 hash of an action array key, returns the key (function or ID).
- actions_get_all_actions in includes/actions.inc
- Retrieves all action instances from the database.
- actions_load in includes/actions.inc
- Retrieves a single action from the database.
- actions_synchronize in includes/actions.inc
- Synchronizes actions that are provided by modules in hook_action_info().
- aggregator_aggregator_process in modules/aggregator/aggregator.processor.inc
- Implement hook_aggregator_process().
- aggregator_aggregator_remove in modules/aggregator/aggregator.processor.inc
- Implement hook_aggregator_remove().
- aggregator_block_configure in modules/aggregator/aggregator.module
- Implement hook_block_configure().
- aggregator_block_info in modules/aggregator/aggregator.module
- Implement hook_block_info().
- aggregator_block_view in modules/aggregator/aggregator.module
- Implement hook_block_view().
- aggregator_categorize_items in modules/aggregator/aggregator.pages.inc
- Form builder; build the page list form.
- aggregator_category_load in modules/aggregator/aggregator.module
- Load an aggregator category.
- aggregator_cron in modules/aggregator/aggregator.module
- Implement hook_cron().
- aggregator_expire in modules/aggregator/aggregator.processor.inc
- Expire feed items on $feed that are older than aggregator_clear.
- aggregator_feed_items_load in modules/aggregator/aggregator.pages.inc
- Load feed items
- aggregator_feed_load in modules/aggregator/aggregator.module
- Load an aggregator feed.
- aggregator_form_category_validate in modules/aggregator/aggregator.admin.inc
- Validate aggregator_form_feed form submissions.
- aggregator_form_feed in modules/aggregator/aggregator.admin.inc
- Form builder; Generate a form to add/edit feed sources.
- aggregator_form_feed_validate in modules/aggregator/aggregator.admin.inc
- Validate aggregator_form_feed() form submissions.
- aggregator_form_opml in modules/aggregator/aggregator.admin.inc
- Form builder; Generate a form to import feeds from OPML.
- aggregator_form_opml_submit in modules/aggregator/aggregator.admin.inc
- Process aggregator_form_opml form submissions.
- aggregator_page_categories in modules/aggregator/aggregator.pages.inc
- Menu callback; displays all the categories used by the aggregator.
- aggregator_page_opml in modules/aggregator/aggregator.pages.inc
- Menu callback; generates an OPML representation of all feeds.
- aggregator_page_rss in modules/aggregator/aggregator.pages.inc
- Menu callback; generate an RSS 0.92 feed of aggregator items or categories.
- aggregator_page_sources in modules/aggregator/aggregator.pages.inc
- Menu callback; displays all the feeds used by the aggregator.
- aggregator_save_feed in modules/aggregator/aggregator.module
- Add/edit/delete an aggregator feed.
- aggregator_save_item in modules/aggregator/aggregator.processor.inc
- Add/edit/delete an aggregator item.
- aggregator_view in modules/aggregator/aggregator.admin.inc
- Displays the aggregator administration page.
- batch_example_op_2 in developer/examples/batch_example.module
- Batch operation for batch 2 : load all nodes, 5 by five This is a multipart operation, using the
- batch_load in includes/batch.inc
- Loads a batch from the database.
- blocked_ip_load in modules/system/system.module
- Retrieve a blocked IP address from the database.
- block_admin_configure in modules/block/block.admin.inc
- Menu callback; displays the block configuration form.
- block_block_info in modules/block/block.module
- Implement hook_block_info().
- block_block_info_alter in modules/block/block.module
- Implement hook_block_info_alter().
- block_block_view in modules/block/block.module
- Implement hook_block_view().
- block_custom_block_get in modules/block/block.module
- Returns information from database about a user-created (custom) block.
- block_form_user_profile_form_alter in modules/block/block.module
- Implement hook_form_FORM_ID_alter().
- block_load in modules/block/block.module
- Load a block object from the database.
- block_theme_initialize in modules/block/block.module
- Assign an initial, default set of blocks for a theme.
- book_get_books in modules/book/book.module
- Returns an array of all books.
- book_link_load in modules/book/book.module
- Like menu_link_load(), but adds additional data from the {book} table.
- book_node_delete in modules/book/book.module
- Implement hook_node_delete().
- book_node_load in modules/book/book.module
- Implement hook_node_load().
- book_uninstall in modules/book/book.install
- Implement hook_uninstall().
- comment_count_unpublished in modules/comment/comment.module
- Returns a menu title which includes the number of unapproved comments.
- comment_delete_multiple in modules/comment/comment.module
- Delete comments and all their replies.
- comment_form_alter in modules/comment/comment.module
- Implement hook_form_alter().
- comment_multiple_delete_confirm in modules/comment/comment.admin.inc
- List the selected comments and verify that the admin wants to delete them.
- comment_new_page_count in modules/comment/comment.module
- Calculate page number for first new comment.
- comment_node_delete in modules/comment/comment.module
- Implement hook_node_delete().
- comment_node_load in modules/comment/comment.module
- Implement hook_node_load().
- comment_node_search_result in modules/comment/comment.module
- Implement hook_node_search_result().
- comment_node_update_index in modules/comment/comment.module
- Implement hook_node_update_index().
- comment_num_new in modules/comment/comment.module
- Get number of new comments for current user and specified node.
- comment_num_replies in modules/comment/comment.module
- Get replies count for a comment.
- comment_publish_action in modules/comment/comment.module
- Action to publish a comment.
- comment_reply in modules/comment/comment.pages.inc
- This function is responsible for generating a comment reply form. There are several cases that have to be handled, including:
- comment_save in modules/comment/comment.module
- Accepts a submission of new or changed comment content.
- comment_unpublish_action in modules/comment/comment.module
- Action to unpublish a comment.
- comment_update_7007 in modules/comment/comment.install
- Split {comment}.timestamp into {comment}.created and {comment}.changed.
- comment_update_index in modules/comment/comment.module
- Implement hook_update_index().
- comment_user_cancel in modules/comment/comment.module
- Implement hook_user_cancel().
- contact_category_list in modules/contact/contact.admin.inc
- Categories/list tab.
- contact_load in modules/contact/contact.module
- Load a contact category.
- contact_site_form in modules/contact/contact.pages.inc
- Form builder; the site-wide contact form.
- dashboard_show_block_content in modules/dashboard/dashboard.module
- AJAX callback to display the rendered contents of a specific block.
- dblog_cron in modules/dblog/dblog.module
- Implement hook_cron().
- dblog_event in modules/dblog/dblog.admin.inc
- Menu callback; displays details about a log message.
- drupal_get_filename in includes/bootstrap.inc
- Returns and optionally sets the filename for a system item (module, theme, etc.). The filename, whether provided, cached, or retrieved from the database, is only returned if the file exists.
- drupal_get_installed_schema_version in includes/install.inc
- Returns the currently installed schema version for a module.
- drupal_is_denied in includes/bootstrap.inc
- Check to see if an IP address has been blocked.
- drupal_lookup_path in includes/path.inc
- Given an alias, return its Drupal system URL if one exists. Given a Drupal system URL return one of its aliases if such a one exists. Otherwise, return FALSE.
- drupal_path_alias_whitelist_rebuild in includes/path.inc
- Rebuild the path alias white list.
- error_test_trigger_pdo_exception in modules/simpletest/tests/error_test.module
- Menu callback; trigger an exception to test the exception handler.
- filter_admin_format_form_validate in modules/filter/filter.admin.inc
- Validate text format form submissions.
- filter_format_allowcache in modules/filter/filter.module
- Check if text in a certain text format is allowed to be cached.
- filter_update_7001 in modules/filter/filter.install
- Break out "escape HTML filter" option to its own filter.
- filter_update_7004 in modules/filter/filter.install
- Move filter settings storage into {filter} table.
- filter_update_7005 in modules/filter/filter.install
- Integrate text formats with the user permissions system.
- flood_is_allowed in includes/common.inc
- Check if the current visitor is allowed to proceed with the specified event.
- forum_get_topics in modules/forum/forum.module
- forum_node_update in modules/forum/forum.module
- Implement hook_node_update().
- forum_update_7001 in modules/forum/forum.install
- Create new {forum_index} table.
- hook_block_info_alter in modules/block/block.api.php
- Act on blocks prior to rendering.
- hook_comment_load in modules/comment/comment.api.php
- Comments are being loaded from the database.
- hook_cron in modules/system/system.api.php
- Perform periodic actions.
- hook_file_download in modules/system/system.api.php
- Control access to private file downloads and specify HTTP headers.
- hook_file_load in modules/system/system.api.php
- Load additional information into file objects.
- hook_load in modules/node/node.api.php
- Load node-type-specific information.
- hook_menu_link_update in modules/menu/menu.api.php
- Inform modules that a menu link has been updated.
- hook_node_load in modules/node/node.api.php
- Act on node objects when loaded.
- hook_node_search_result in modules/node/node.api.php
- Act on a node being displayed as a search result.
- hook_node_update_index in modules/node/node.api.php
- Act on a node being indexed for searching.
- hook_search_status in modules/search/search.api.php
- Report the stutus of indexing.
- hook_taxonomy_term_load in modules/taxonomy/taxonomy.api.php
- Act on taxonomy terms when loaded.
- hook_update_N in modules/system/system.api.php
- Perform a single update. For each patch which requires a database change add a new hook_update_N() which will be called by update.php.
- hook_user_load in modules/user/user.api.php
- Act on user objects when loaded from the database.
- install_verify_completed_task in ./install.php
- Verify and return the last installation task that was completed.
- language_list in includes/bootstrap.inc
- Get a list of languages set up indexed by the specified key
- locale in modules/locale/locale.module
- Provides interface translation services.
- locale_batch_by_component in includes/locale.inc
- Prepare a batch to run when installing modules or enabling themes. This batch will import translations for the newly added components in all the languages already set up on the site.
- locale_languages_edit_form in includes/locale.inc
- Editing screen for a particular language.
- locale_languages_edit_form_validate in includes/locale.inc
- Validate the language editing form. Reused for custom language addition too.
- locale_languages_predefined_form_validate in includes/locale.inc
- Validate the language addition form.
- locale_translate_delete_page in includes/locale.inc
- String deletion confirmation page.
- locale_translate_edit_form in includes/locale.inc
- User interface for string editing.
- locale_translate_edit_form_submit in includes/locale.inc
- Process string editing form submissions.
- locale_translate_overview_screen in includes/locale.inc
- Overview screen for translations.
- locale_uninstall in modules/locale/locale.install
- Implement hook_uninstall().
- lock_may_be_available in includes/lock.inc
- Check if lock acquired by a different process may be available.
- menu_delete_menu_confirm in modules/menu/menu.admin.inc
- Build a confirm form for deletion of a custom menu.
- menu_delete_menu_confirm_submit in modules/menu/menu.admin.inc
- Delete a custom menu and all links in it.
- menu_edit_menu_submit in modules/menu/menu.admin.inc
- Submit function for adding or editing a custom menu.
- menu_enable in modules/menu/menu.module
- Implement hook_enable().
- menu_link_delete in includes/menu.inc
- Delete one or several menu links.
- menu_link_maintain in includes/menu.inc
- Insert, update or delete an uncustomized menu link related to a module.
- menu_link_save in includes/menu.inc
- Save a menu link.
- menu_load in modules/menu/menu.module
- Load the data for a single custom menu.
- menu_node_delete in modules/menu/menu.module
- Implement hook_node_delete().
- menu_overview_form in modules/menu/menu.admin.inc
- Form for editing an entire menu tree at once.
- menu_overview_page in modules/menu/menu.admin.inc
- Menu callback which shows an overview page of all the custom menus and their descriptions.
- menu_valid_path in includes/menu.inc
- Validates the path of a menu link being created or edited.
- module_enable in includes/module.inc
- Enable a given list of modules.
- nodeapi_example_nodeapi in developer/examples/nodeapi_example.module
- Implementation of hook_nodeapi().
- node_access_example_node_load in developer/examples/node_access_example.module
- node_access_example_node_update in developer/examples/node_access_example.module
- Implementation of hook_node_update().
- node_access_rebuild in modules/node/node.module
- Rebuild the node access database. This is occasionally needed by modules that make system-wide changes to access levels.
- node_admin_nodes in modules/node/node.admin.inc
- Form builder: Builds the node administration overview.
- node_assign_owner_action in modules/node/node.module
- Implement a configurable Drupal action. Assigns ownership of a node to a user.
- node_assign_owner_action_form in modules/node/node.module
- node_assign_owner_action_submit in modules/node/node.module
- node_example_delete in developer/examples/node_example.module
- Implementation of hook_delete().
- node_example_insert in developer/examples/node_example.module
- Implementation of hook_insert().
- node_example_load in developer/examples/node_example.module
- Implementation of hook_load().
- node_example_nodeapi in developer/examples/node_example.module
- Implementation of hook_nodeapi().
- node_example_update in developer/examples/node_example.module
- Implementation of hook_update().
- node_language_provider in modules/node/node.module
- Return the language of the current node.
- node_last_changed in modules/node/node.module
- node_last_viewed in modules/node/node.module
- Retrieves the timestamp at which the current user last viewed the specified node.
- node_multiple_delete_confirm in modules/node/node.admin.inc
- node_requirements in modules/node/node.module
- Implement hook_requirements().
- node_revision_delete_confirm_submit in modules/node/node.pages.inc
- node_revision_list in modules/node/node.module
- Return a list of all the existing revision numbers.
- node_search_status in modules/node/node.module
- Implement hook_search_status().
- node_type_delete_confirm in modules/node/content_types.inc
- Menu callback; delete a single content type.
- node_user_cancel in modules/node/node.module
- Implement hook_user_cancel().
- openid_association in modules/openid/openid.module
- Attempt to create a shared secret with the OpenID Provider.
- openid_user_add_validate in modules/openid/openid.pages.inc
- openid_user_delete_form in modules/openid/openid.pages.inc
- Menu callback; Delete the specified OpenID identity from the system.
- openid_user_identities in modules/openid/openid.pages.inc
- Menu callback; Manage OpenID identities for the specified user.
- openid_verify_assertion in modules/openid/openid.module
- Attempt to verify the response received from the OpenID Provider.
- path_admin_form_validate in modules/path/path.admin.inc
- Verify that a URL alias is valid
- poll_cron in modules/poll/poll.module
- Implement hook_cron().
- poll_load in modules/poll/poll.module
- Implement hook_load().
- profile_admin_overview in modules/profile/profile.admin.inc
- Form builder to display a listing of all editable profile fields.
- profile_block_configure in modules/profile/profile.module
- Implement hook_block_configure().
- profile_block_view in modules/profile/profile.module
- Implement hook_block_view().
- profile_browse in modules/profile/profile.pages.inc
- Menu callback; display a list of user information.
- profile_field_delete in modules/profile/profile.admin.inc
- Menu callback; deletes a field from all user profiles.
- profile_field_form in modules/profile/profile.admin.inc
- Menu callback: Generate a form to add/edit a user profile field.
- profile_user_categories in modules/profile/profile.module
- Implement hook_user_categories().
- profile_user_load in modules/profile/profile.module
- Implement hook_user_load().
- profile_user_view in modules/profile/profile.module
- Implement hook_user_view().
- registry_get_parsed_files in includes/registry.inc
- Return the list of files in registry_file
- scaffolding_example_record_delete in developer/examples/scaffolding_example/scaffolding_example.module
- Deletes a record, given its unique ID.
- scaffolding_example_record_load in developer/examples/scaffolding_example/scaffolding_example.module
- Loader function for individual records.
- scaffolding_example_record_load_all in developer/examples/scaffolding_example/scaffolding_example.module
- Public loader function for the full collection of records.
- search_index in modules/search/search.module
- Update the full-text search index for a particular item.
- search_node_update_index in modules/search/search.module
- Implement hook_node_update_index().
- search_update_totals in modules/search/search.module
- This function is called on shutdown to ensure that search_total is always up to date (even if cron times out or otherwise fails).
- shortcut_set_get_unique_name in modules/shortcut/shortcut.module
- Returns a unique, machine-readable shortcut set name.
- simpletest_clean_results_table in modules/simpletest/simpletest.module
- Clear the test result tables.
- simpletest_test_get_all in modules/simpletest/simpletest.module
- Get a list of all of the tests provided by the system.
- statistics_access_log in modules/statistics/statistics.admin.inc
- Menu callback; Displays recent page accesses.
- statistics_get in modules/statistics/statistics.module
- Retrieves a node's "view statistics".
- statistics_update_index in modules/statistics/statistics.module
- Implement hook_update_index().
- system_actions_configure in modules/system/system.admin.inc
- Menu callback; Creates the form for configuration of a single action.
- system_actions_manage in modules/system/system.admin.inc
- Menu callback; Displays an overview of available and configured actions.
- system_admin_config_page in modules/system/system.admin.inc
- Menu callback; Provide the administration overview page.
- system_admin_menu_block in modules/system/system.module
- Provide a single block on the administration overview page.
- system_cron in modules/system/system.module
- Implement hook_cron().
- system_date_format_locale in modules/system/system.module
- Get the appropriate date format for a type and locale.
- system_get_date_format in modules/system/system.module
- Get the format details for a particular id.
- system_get_files_database in modules/system/system.module
- Retrieves the current status of an array of files in the system table.
- system_get_info in modules/system/system.module
- Returns an array of information about active modules or themes.
- system_get_module_admin_tasks in modules/system/system.module
- Generate a list of tasks offered by a specified module.
- system_ip_blocking in modules/system/system.admin.inc
- Menu callback. Display blocked IP addresses.
- system_ip_blocking_form_validate in modules/system/system.admin.inc
- system_list in includes/module.inc
- Build a list of bootstrap modules and enabled modules and themes.
- system_main_admin_page in modules/system/system.admin.inc
- Menu callback; Provide the administration overview page.
- system_modules_uninstall in modules/system/system.admin.inc
- Builds a form of currently disabled modules.
- system_update_7000 in modules/system/system.install
- Rename blog and forum permissions to be consistent with other content types.
- system_update_7003 in modules/system/system.install
- Update {blocked_ips} with valid IP addresses from {access}.
- system_update_7004 in modules/system/system.install
- Remove hardcoded numeric deltas from all blocks in core.
- system_update_7007 in modules/system/system.install
- Convert to new method of storing permissions.
- system_update_7008 in modules/system/system.install
- Use the poll_choice primary key to record votes in poll_votes rather than the choice order. Rename chorder to weight.
- system_update_7011 in modules/system/system.install
- Split the 'bypass node access' permission from 'administer nodes'.
- system_update_7013 in modules/system/system.install
- Convert default time zone offset to default time zone name.
- system_update_7016 in modules/system/system.install
- Remove custom datatype *_unsigned in PostgreSQL.
- system_update_7021 in modules/system/system.install
- Add new blocks to new regions, migrate custom variables to blocks.
- system_update_7024 in modules/system/system.install
- Add the substr_index() function to PostgreSQL.
- system_update_7035 in modules/system/system.install
- Migrate upload module files to the new {file} table.
- system_update_7036 in modules/system/system.install
- Split the 'access site in maintenance mode' permission from 'administer site configuration'.
- system_update_7044 in modules/system/system.install
- Reuse the actions_aid table as sequences.
- system_update_files_database in modules/system/system.module
- Updates the records in the system table based on the files array.
- taxonomy_tokens in modules/taxonomy/taxonomy.tokens.inc
- Implement hook_tokens().
- taxonomy_update_7004 in modules/taxonomy/taxonomy.install
- Move taxonomy vocabulary associations for nodes to fields and field instances.
- taxonomy_update_7005 in modules/taxonomy/taxonomy.install
- Migrate {taxonomy_term_node} table to field storage.
- taxonomy_vocabulary_delete in modules/taxonomy/taxonomy.module
- Delete a vocabulary.
- taxonomy_vocabulary_get_names in modules/taxonomy/taxonomy.module
- Get names for all taxonomy vocabularies.
- toolbar_get_menu_tree in modules/toolbar/toolbar.module
- Get only the top level items below the 'admin' path.
- toolbar_install in modules/toolbar/toolbar.install
- Implementation of hook_install().
- tracker_enable in modules/tracker/tracker.install
- Implement hook_enable().
- tracker_page in modules/tracker/tracker.pages.inc
- Menu callback; prints a listing of active nodes on the site.
- tracker_update_7000 in modules/tracker/tracker.install
- Create new tracker_node and tracker_user tables.
- translation_remove_from_set in modules/translation/translation.module
- Remove a node from its translation set (if any) and update the set accordingly.
- trigger_assign_form_submit in modules/trigger/trigger.admin.inc
- Submit function for trigger_assign_form().
- trigger_assign_form_validate in modules/trigger/trigger.admin.inc
- Validation function for trigger_assign_form().
- trigger_get_assigned_actions in modules/trigger/trigger.module
- Gets the action IDs of actions to be executed for a hook.
- trigger_trigger_info in modules/trigger/trigger.module
- Implement hook_trigger_info().
- trigger_update_7000 in modules/trigger/trigger.install
- Adds operation names to the hook names and drops the "op" field.
- update_fix_compatibility in includes/update.inc
- Disable anything in the {system} table that is not compatible with the current version of Drupal core.
- upload_file_download in modules/upload/upload.module
- Implement hook_file_download().
- upload_file_load in modules/upload/upload.module
- Implement hook_file_load().
- upload_node_load in modules/upload/upload.module
- Implement hook_node_load().
- upload_total_space_used in modules/upload/upload.module
- Determine how much disk space is occupied by uploaded files.
- upload_update_7000 in modules/upload/upload.install
- Migrate upload module files from {files} to {file}.
- user_admin_account in modules/user/user.admin.inc
- Form builder; User administration page.
- user_admin_role in modules/user/user.admin.inc
- Menu callback: administer roles.
- user_authenticate in modules/user/user.module
- Try to validate the user's login credentials locally.
- user_block_view in modules/user/user.module
- Implement hook_block_view().
- user_external_load in modules/user/user.module
- user_get_authmaps in modules/user/user.module
- Discover which external authentication module(s) authenticated a username.
- user_is_blocked in modules/user/user.module
- Checks for usernames blocked by user administration.
- user_login_authenticate_validate in modules/user/user.module
- A validate handler on the login form. Check supplied username/password against local users table. If successful, $form_state['uid'] is set to the matching user ID.
- user_multiple_cancel_confirm in modules/user/user.module
- user_multiple_role_edit in modules/user/user.module
- Callback function for admin mass adding/deleting a user role.
- user_node_load in modules/user/user.module
- Implementation of hook_node_load().
- user_roles in modules/user/user.module
- Retrieve an array of roles matching specified conditions.
- user_role_permissions in modules/user/user.module
- Determine the permissions for one or more roles.
- user_save in modules/user/user.module
- Save changes to a user account or add a new user.
- user_update_7000 in modules/user/user.install
- Increase the length of the password field to accommodate better hashes.
- user_update_7002 in modules/user/user.install
- Convert user time zones from time zone offsets to time zone names.
- user_update_7004 in modules/user/user.install
- Add the user's pictures to the {file} table and make them managed files.
- variable_initialize in includes/bootstrap.inc
- Load the persistent variable table.
- _aggregator_has_categories in modules/aggregator/aggregator.module
- Find out whether there are any aggregator categories.
- _block_rehash in modules/block/block.module
- Update the 'block' DB table with the blocks currently exported by modules.
- _book_update_outline in modules/book/book.module
- Common helper function to handles additions and updates to the book outline.
- _comment_update_node_statistics in modules/comment/comment.module
- Updates the comment statistics for a given node. This should be called any time a comment is added, deleted, or updated.
- _dblog_get_message_types in modules/dblog/dblog.module
- _drupal_session_read in includes/session.inc
- Session handler assigned by session_set_save_handler().
- _forum_update_forum_index in modules/forum/forum.module
- Updates the taxonomy index for a given node.
- _forum_user_last_visit in modules/forum/forum.module
- _locale_export_get_strings in includes/locale.inc
- Generates a structured array of all strings with translations in $language, if given. This array can be used to generate an export of the string in the database.
- _locale_import_one_string_db in includes/locale.inc
- Import one string into the database.
- _locale_import_po in includes/locale.inc
- Parses Gettext Portable Object file information and inserts into database
- _locale_parse_js_file in includes/locale.inc
- Parses a JavaScript file, extracts strings wrapped in Drupal.t() and Drupal.formatPlural() and inserts them into the database.
- _locale_rebuild_js in includes/locale.inc
- (Re-)Creates the JavaScript translation file for a language.
- _menu_delete_item in includes/menu.inc
- Helper function for menu_link_delete; deletes a single menu link.
- _menu_set_expanded_menus in includes/menu.inc
- Helper function to update a list of menus with expanded items
- _node_access_rebuild_batch_operation in modules/node/node.module
- Batch operation for node_access_rebuild_batch.
- _node_revision_access in modules/node/node.module
- _system_date_formats_build in modules/system/system.module
- Builds and returns the list of available date formats.
- _system_date_format_types_build in modules/system/system.module
- Builds and returns the list of available date types.
- _tracker_add in modules/tracker/tracker.module
- Update indexing tables when a node is added, updated or commented on.
- _tracker_calculate_changed in modules/tracker/tracker.module
- Determine the max timestamp between $node->changed and the last comment.
- _tracker_remove in modules/tracker/tracker.module
- Clean up indexed data when nodes or comments are removed.
- _update_cache_get in modules/update/update.module
- Retrieve data from the private update status cache table.
Code
includes/database/database.inc, line 2008
<?php
function db_query($query, array $args = array(), array $options = array()) {
if (empty($options['target'])) {
$options['target'] = 'default';
}
return Database::getConnection($options['target'])->query($query, $args, $options);
}
?>Login or register to post comments 