Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 9.x
»
database.inc
»
db_query
Search Drupal 9.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 9.x
Topics
Classes
Functions
Files
Namespaces
Constants
Globals
Deprecated
93 calls to db_query()
AggregatorTestBase::getCategories
in drupal/
core/
modules/
aggregator/
lib/
Drupal/
aggregator/
Tests/
AggregatorTestBase.php
Pull categories from aggregator_category table.
AggregatorTestBase::getFeedCategories
in drupal/
core/
modules/
aggregator/
lib/
Drupal/
aggregator/
Tests/
AggregatorTestBase.php
Pull feed categories from aggregator_category_feed table.
AggregatorTestBase::updateFeedItems
in drupal/
core/
modules/
aggregator/
lib/
Drupal/
aggregator/
Tests/
AggregatorTestBase.php
Update feed items (simulate click to admin/config/services/aggregator/update/$fid).
aggregator_block_info
in drupal/
core/
modules/
aggregator/
aggregator.module
Implements
hook_block_info
().
aggregator_categorize_items
in drupal/
core/
modules/
aggregator/
aggregator.pages.inc
Form constructor to build the page list form.
aggregator_cron
in drupal/
core/
modules/
aggregator/
aggregator.module
Implements
hook_cron
().
aggregator_form_feed
in drupal/
core/
modules/
aggregator/
aggregator.admin.inc
Form constructor for adding and editing feed sources.
aggregator_form_feed_validate
in drupal/
core/
modules/
aggregator/
aggregator.admin.inc
Form validation handler for
aggregator_form_feed
().
aggregator_form_opml_submit
in drupal/
core/
modules/
aggregator/
aggregator.admin.inc
Form submission handler for
aggregator_form_opml
().
aggregator_page_categories
in drupal/
core/
modules/
aggregator/
aggregator.pages.inc
Page callback: Displays all the categories used by the aggregator.
aggregator_page_opml
in drupal/
core/
modules/
aggregator/
aggregator.pages.inc
Page callback: Generates an OPML representation of all feeds.
aggregator_page_sources
in drupal/
core/
modules/
aggregator/
aggregator.pages.inc
Page callback: Displays all the feeds used by the aggregator.
aggregator_save_item
in drupal/
core/
modules/
aggregator/
aggregator.processor.inc
Adds/edits/deletes an aggregator item.
aggregator_view
in drupal/
core/
modules/
aggregator/
aggregator.admin.inc
Displays the aggregator administration page.
ban_admin_page
in drupal/
core/
modules/
ban/
ban.admin.inc
Page callback: Displays banned IP addresses.
BasicSyntaxTest::testBasicConcat
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
BasicSyntaxTest.php
Tests string concatenation.
BasicSyntaxTest::testFieldConcat
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
BasicSyntaxTest.php
Tests string concatenation with field values.
block_block_info
in drupal/
core/
modules/
block/
block.module
Implements
hook_block_info
().
block_block_list_alter
in drupal/
core/
modules/
block/
block.module
Implements
hook_block_list_alter
().
block_form_user_profile_form_alter
in drupal/
core/
modules/
block/
block.module
Implements
hook_form_FORM_ID_alter
() for user_profile_form().
block_theme_initialize
in drupal/
core/
modules/
block/
block.module
Assigns an initial, default set of blocks for a theme.
book_node_load
in drupal/
core/
modules/
book/
book.module
Implements
hook_node_load
().
book_node_predelete
in drupal/
core/
modules/
book/
book.module
Implements
hook_node_predelete
().
comment_node_load
in drupal/
core/
modules/
comment/
comment.module
Implements
hook_node_load
().
comment_node_update_index
in drupal/
core/
modules/
comment/
comment.module
Implements
hook_node_update_index
().
contact_update_8001
in drupal/
core/
modules/
contact/
contact.install
Migrate contact categories into configuration.
CrudTest::testCreateField
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
CrudTest.php
Test the creation of a field.
CrudTest::testCRUD
in drupal/
core/
modules/
rdf/
lib/
Drupal/
rdf/
Tests/
CrudTest.php
Tests inserting, loading, updating, and deleting RDF mappings.
DBLogTest::doUser
in drupal/
core/
modules/
dblog/
lib/
Drupal/
dblog/
Tests/
DBLogTest.php
Generates and then verifies some user events.
error_test_trigger_pdo_exception
in drupal/
core/
modules/
system/
tests/
modules/
error_test/
error_test.module
Menu callback; trigger an exception to test the exception handler.
FetchTest::testQueryFetchArray
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
FetchTest.php
Confirms that we can fetch a record to an associative array explicitly.
FetchTest::testQueryFetchBoth
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
FetchTest.php
Confirms that we can fetch a record into a doubly-keyed array explicitly.
FetchTest::testQueryFetchClass
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
FetchTest.php
Confirms that we can fetch a record into a new instance of a custom class.
FetchTest::testQueryFetchCol
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
FetchTest.php
Confirms that we can fetch an entire column of a result set at once.
FetchTest::testQueryFetchDefault
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
FetchTest.php
Confirms that we can fetch a record properly in default object mode.
FetchTest::testQueryFetchNum
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
FetchTest.php
Confirms that we can fetch a record into an indexed array explicitly.
FetchTest::testQueryFetchObject
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
FetchTest.php
Confirms that we can fetch a record to an object explicitly.
FieldInstanceCrudTest::testCreateFieldInstance
in drupal/
core/
modules/
field/
lib/
Drupal/
field/
Tests/
FieldInstanceCrudTest.php
Test the creation of a field instance.
FileStorageController::retrieveTemporaryFiles
in drupal/
core/
modules/
file/
lib/
Drupal/
file/
FileStorageController.php
Retrieve temporary files that are older than
DRUPAL_MAXIMUM_TEMP_FILE_AGE
.
FilledStandardUpgradePathTest::testFilledStandardUpgrade
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Upgrade/
FilledStandardUpgradePathTest.php
Tests a successful point release update.
FilterAdminTest::testFilterAdmin
in drupal/
core/
modules/
filter/
lib/
Drupal/
filter/
Tests/
FilterAdminTest.php
Tests filter administration functionality.
filter_list_format
in drupal/
core/
modules/
filter/
filter.module
Retrieves a list of filters for a given text format.
HandlerBase::getTimezone
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Plugin/
views/
HandlerBase.php
Figure out what timezone we're in; needed for some date manipulations.
hook_block_list_alter
in drupal/
core/
modules/
block/
block.api.php
Act on blocks prior to rendering.
hook_comment_load
in drupal/
core/
modules/
comment/
comment.api.php
Act on comments being loaded from the database.
hook_cron
in drupal/
core/
modules/
system/
system.api.php
Perform periodic actions.
hook_load
in drupal/
core/
modules/
node/
node.api.php
Act on nodes being loaded from the database.
hook_node_load
in drupal/
core/
modules/
node/
node.api.php
Act on arbitrary nodes being loaded from the database.
hook_node_update_index
in drupal/
core/
modules/
node/
node.api.php
Act on a node being indexed for searching.
hook_taxonomy_term_load
in drupal/
core/
modules/
taxonomy/
taxonomy.api.php
Act on taxonomy terms when loaded.
hook_user_load
in drupal/
core/
modules/
user/
user.api.php
Act on user objects when loaded from the database.
ImportOpmlTest::submitImportForm
in drupal/
core/
modules/
aggregator/
lib/
Drupal/
aggregator/
Tests/
ImportOpmlTest.php
Submit form with invalid, empty and valid OPML files.
install_verify_completed_task
in drupal/
core/
includes/
install.core.inc
Verifies and returns the last installation task that was completed.
locale_translation_get_projects
in drupal/
core/
modules/
locale/
locale.compare.inc
Get array of projects which are available for interface translation.
locale_update_8002
in drupal/
core/
modules/
locale/
locale.install
Removes duplicates in {locales_source}.
locale_update_8005
in drupal/
core/
modules/
locale/
locale.install
Update plural interface translations to new format.
LoggingTest::testEnableTargetLogging
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Database/
LoggingTest.php
Tests logging queries against multiple targets on the same connection.
LoopTest::triggerActions
in drupal/
core/
modules/
action/
lib/
Drupal/
action/
Tests/
LoopTest.php
Loops watchdog messages up to actions_max_stack times.
menu_delete_menu_confirm_submit
in drupal/
core/
modules/
menu/
menu.admin.inc
Delete a custom menu and all links in it.
menu_edit_item
in drupal/
core/
modules/
menu/
menu.admin.inc
Menu callback; Build the menu link editing form.
menu_edit_menu_submit
in drupal/
core/
modules/
menu/
menu.admin.inc
Submit function for adding or editing a custom menu.
menu_enable
in drupal/
core/
modules/
menu/
menu.module
Implements
hook_enable
().
menu_form_node_form_alter
in drupal/
core/
modules/
menu/
menu.module
Implements
hook_form_BASE_FORM_ID_alter
().
menu_link_delete
in drupal/
core/
includes/
menu.inc
Delete one or several menu links.
menu_node_predelete
in drupal/
core/
modules/
menu/
menu.module
Implements
hook_node_predelete
().
menu_overview_form
in drupal/
core/
modules/
menu/
menu.admin.inc
Form for editing an entire menu tree at once.
menu_overview_page
in drupal/
core/
modules/
menu/
menu.admin.inc
Menu callback which shows an overview page of all the custom menus and their descriptions.
NewDefaultThemeBlocksTest::testNewDefaultThemeBlocks
in drupal/
core/
modules/
block/
lib/
Drupal/
block/
Tests/
NewDefaultThemeBlocksTest.php
Check the enabled Bartik blocks are correctly copied over.
node_access_test_node_load
in drupal/
core/
modules/
node/
tests/
modules/
node_access_test/
node_access_test.module
Implements
hook_node_load
().
node_assign_owner_action_form
in drupal/
core/
modules/
node/
node.module
Form constructor for the settings form for
node_assign_owner_action
().
node_block_list_alter
in drupal/
core/
modules/
node/
node.module
Implements
hook_block_list_alter
().
node_revision_list
in drupal/
core/
modules/
node/
node.module
Returns a list of all the existing revision numbers for the node passed in.
openid_user_identities
in drupal/
core/
modules/
openid/
openid.pages.inc
Menu callback; Manage OpenID identities for the specified user.
RelationshipTest::testRelationshipQuery
in drupal/
core/
modules/
views/
lib/
Drupal/
views/
Tests/
Handler/
RelationshipTest.php
Tests the query result of a view with a relationship.
Schema::findTables
in drupal/
core/
lib/
Drupal/
Core/
Database/
Driver/
sqlite/
Schema.php
Find all tables that are like the specified base table name.
search_index
in drupal/
core/
modules/
search/
search.module
Update the full-text search index for a particular item.
search_node_update_index
in drupal/
core/
modules/
search/
search.module
Implements
hook_node_update_index
().
search_update_totals
in drupal/
core/
modules/
search/
search.module
Updates the {search_total} database table.
SessionTest::testEmptySessionID
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Session/
SessionTest.php
Test that empty session IDs are not allowed.
system_admin_config_page
in drupal/
core/
modules/
system/
system.admin.inc
Menu callback; Provide the administration overview page.
Tasks::checkBinaryOutput
in drupal/
core/
lib/
Drupal/
Core/
Database/
Driver/
pgsql/
Install/
Tasks.php
Check Binary Output.
Tasks::initializeDatabase
in drupal/
core/
lib/
Drupal/
Core/
Database/
Driver/
pgsql/
Install/
Tasks.php
Make PostgreSQL Drupal friendly.
Tasks::runTestQuery
in drupal/
core/
lib/
Drupal/
Core/
Database/
Install/
Tasks.php
Run SQL tests to ensure the database can execute commands with the current user.
TrackerAttributesTest::_testBasicTrackerRdfaMarkup
in drupal/
core/
modules/
rdf/
lib/
Drupal/
rdf/
Tests/
TrackerAttributesTest.php
Helper function for testAttributesInTracker().
tracker_page
in drupal/
core/
modules/
tracker/
tracker.pages.inc
Page callback: Generates a page of tracked nodes for the site.
UpdateScriptTest::testUpdateAccess
in drupal/
core/
modules/
system/
lib/
Drupal/
system/
Tests/
Update/
UpdateScriptTest.php
Tests access to the update script.
update_prepare_d8_bootstrap
in drupal/
core/
includes/
update.inc
Performs extra steps required to bootstrap when using a Drupal 7 database.
UserStorageController::attachLoad
in drupal/
core/
modules/
user/
lib/
Drupal/
user/
UserStorageController.php
Overrides
Drupal\Core\Entity\DatabaseStorageController::attachLoad
().
user_admin_account
in drupal/
core/
modules/
user/
user.admin.inc
Form builder; User administration page.
user_role_permissions
in drupal/
core/
modules/
user/
user.module
Determine the permissions for one or more roles.
_dblog_get_message_types
in drupal/
core/
modules/
dblog/
dblog.module
Gathers a list of uniquely defined database log message types.
_forum_user_last_visit
in drupal/
core/
modules/
forum/
forum.module
Gets the last time the user viewed a node.
_menu_delete_item
in drupal/
core/
includes/
menu.inc
Deletes a single menu link.