db_query

  1. drupal
    1. drupal6 database.mysql-common.inc
    2. drupal6 database.pgsql.inc
    3. drupal7
Versionen
drupal6 db_query($query)
drupal7 db_query($query, $args = 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.

Übergabeparameter

$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.

Rückgabewert

A prepared statement object, already executed.

See also

DatabaseConnection::defaultOptions()

Verwandte Themen

▾ 414 functions call db_query()

ActionsConfigurationTestCase::testActionConfiguration in modules/simpletest/tests/actions.test
Test the configuration of advanced actions through the administration interface.
actions_do in includes/actions.inc
Perform a given list of actions by executing their callback functions.
actions_function_lookup in includes/actions.inc
Given an md5 hash of a function name, return the function name.
actions_get_all_actions in includes/actions.inc
Retrieve all action instances from the database.
actions_load in includes/actions.inc
Retrieve a single action from the database.
actions_synchronize in includes/actions.inc
Synchronize actions that are provided by modules.
addField in includes/database/mysql/schema.inc
addField in includes/database/pgsql/schema.inc
Add a new field to a table.
AggregatorTestCase::createFeed in modules/aggregator/aggregator.test
Create an aggregator feed (simulate form submission on admin/content/aggregator/add/feed).
AggregatorTestCase::getFeedCategories in modules/aggregator/aggregator.test
Pull feed categories from aggregator_category_feed table.
AggregatorTestCase::uniqueFeed in modules/aggregator/aggregator.test
Check if the feed name and url is unique.
AggregatorTestCase::updateAndRemove in modules/aggregator/aggregator.test
Add and remove feed items and ensure that the count is zero.
AggregatorTestCase::updateFeedItems in modules/aggregator/aggregator.test
Update feed items (simulate click to admin/content/aggregator/update/$fid).
aggregator_aggregator_process in modules/aggregator/aggregator.processor.inc
Implementation of hook_aggregator_process().
aggregator_aggregator_remove in modules/aggregator/aggregator.processor.inc
Implementation of hook_aggregator_remove().
aggregator_block_configure in modules/aggregator/aggregator.module
Implementation of hook_block_configure().
aggregator_block_list in modules/aggregator/aggregator.module
Implementation of hook_block_list().
aggregator_block_view in modules/aggregator/aggregator.module
Implementation of 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
Implementation of 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.
alterTable in includes/database/sqlite/schema.inc
Create a table with a new schema containing the old content.
blocked_ip_load in modules/system/system.module
Retrieve a blocked IP address from the database.
BlockTestCase::testBlock in modules/block/block.test
Test configuring and moving a module-define block to specific regions.
BlockTestCase::testBox in modules/block/block.test
Test creating custom block (i.e. box), moving it to a specific region and then deleting it.
BlockTestCase::testBoxFormat in modules/block/block.test
Test creating custom block (i.e. box) using Full HTML.
block_add_block_form_submit in modules/block/block.admin.inc
Save the new custom block.
block_admin_configure in modules/block/block.admin.inc
Menu callback; displays the block configuration form.
block_admin_configure_submit in modules/block/block.admin.inc
block_admin_display_form_submit in modules/block/block.admin.inc
Process main blocks administration form submissions.
block_block_list in modules/block/block.module
Implementation of hook_block_list().
block_block_view in modules/block/block.module
Implementation of hook_block_view().
block_box_delete_submit in modules/block/block.admin.inc
Deletion of custom blocks.
block_box_get in modules/block/block.module
block_box_save in modules/block/block.module
block_initialize_theme_blocks in modules/block/block.module
Assign an initial, default set of blocks for a theme.
block_user_form in modules/block/block.module
Implementation of hook_user_form().
blogapi_mt_validate_terms in modules/blogapi/blogapi.module
Blogging API helper - find allowed taxonomy terms for a node type.
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
Implementation of hook_node_delete().
book_node_load in modules/book/book.module
Implementation of hook_node_load().
book_uninstall in modules/book/book.install
Implementation of hook_uninstall().
book_update_6000 in modules/book/book.install
Drupal 5.x to 6.x update.
cache_get in includes/cache.inc
Return data from the persistent cache. Data may be stored as either plain text or as serialized data. cache_get will automatically return unserialized objects and arrays.
CategorizeFeedItemTestCase::testCategorizeFeedItem in modules/aggregator/aggregator.test
If a feed has a category, make sure that the children inherit that categorization.
columnExists in includes/database/schema.inc
Check if a column exists in the given table.
comment_delete in modules/comment/comment.admin.inc
Menu callback; delete a comment.
comment_edit in modules/comment/comment.pages.inc
Form builder; generate a comment editing form.
comment_enable in modules/comment/comment.install
Implementation of hook_enable().
comment_form_add_preview in modules/comment/comment.module
Form builder; Generate and validate a comment preview form.
comment_form_alter in modules/comment/comment.module
Implementation of hook_form_alter().
comment_load in modules/comment/comment.module
Load the entire comment by cid.
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_load in modules/comment/comment.module
Implementation of hook_node_load().
comment_node_search_result in modules/comment/comment.module
Implementation of hook_node_search_result().
comment_node_update_index in modules/comment/comment.module
Implementation of 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_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
Drupal action to unpublish a comment.
comment_update_1 in modules/comment/comment.install
Changed node_comment_statistics to use node->changed to avoid future timestamps.
comment_update_index in modules/comment/comment.module
Implementation of hook_update_index().
comment_user_cancel in modules/comment/comment.module
Implementation of hook_user_cancel().
ContactPersonalTestCase::testPersonalContact in modules/contact/contact.test
Test personal contact form.
ContactSitewideTestCase::deleteCategories in modules/contact/contact.test
Delete all categories.
ContactSitewideTestCase::getCategories in modules/contact/contact.test
Get list category ids.
ContactSitewideTestCase::setPermission in modules/contact/contact.test
Set permission.
ContactSitewideTestCase::testSiteWideContact in modules/contact/contact.test
Test configuration options and site-wide contact form.
contact_admin_categories in modules/contact/contact.admin.inc
Categories/list tab.
contact_load in modules/contact/contact.module
Load the data for a single contact category.
contact_site_form in modules/contact/contact.pages.inc
contact_site_page in modules/contact/contact.pages.inc
Site-wide contact page.
DatabaseAnsiSyntaxTestCase::testBasicConcat in modules/simpletest/tests/database_test.test
Test for ANSI string concatenation.
DatabaseAnsiSyntaxTestCase::testFieldConcat in modules/simpletest/tests/database_test.test
Test for ANSI string concatenation with field values.
DatabaseAnsiSyntaxTestCase::testQuotes in modules/simpletest/tests/database_test.test
ANSI standard allows for double quotes to escape field names.
DatabaseDeleteTruncateTestCase::testSimpleDelete in modules/simpletest/tests/database_test.test
Confirm that we can delete a single record successfully.
DatabaseDeleteTruncateTestCase::testTruncate in modules/simpletest/tests/database_test.test
Confirm that we can truncate a whole table successfully.
DatabaseFetch2TestCase::testQueryFetchBoth in modules/simpletest/tests/database_test.test
Confirm that we can fetch a record into a doubly-keyed array explicitly.
DatabaseFetch2TestCase::testQueryFetchCol in modules/simpletest/tests/database_test.test
Confirm that we can fetch an entire column of a result set at once.
DatabaseFetch2TestCase::testQueryFetchNum in modules/simpletest/tests/database_test.test
DatabaseFetchTestCase::testQueryFetchArray in modules/simpletest/tests/database_test.test
Confirm that we can fetch a record to an array associative explicitly.
DatabaseFetchTestCase::testQueryFetchClass in modules/simpletest/tests/database_test.test
Confirm that we can fetch a record into a new instance of a custom class.
DatabaseFetchTestCase::testQueryFetchDefault in modules/simpletest/tests/database_test.test
Confirm that we can fetch a record properly in default object mode.
DatabaseFetchTestCase::testQueryFetchObject in modules/simpletest/tests/database_test.test
Confirm that we can fetch a record to an object explicitly.
DatabaseInsertDefaultsTestCase::testDefaultEmptyInsert in modules/simpletest/tests/database_test.test
Test that no action will be preformed if no fields are specified.
DatabaseInsertDefaultsTestCase::testDefaultInsert in modules/simpletest/tests/database_test.test
Test that we can run a query that is "default values for everything".
DatabaseInsertDefaultsTestCase::testDefaultInsertWithFields in modules/simpletest/tests/database_test.test
Test that we can insert fields with values and defaults in the same query.
DatabaseInsertLOBTestCase::testInsertMultipleBlob in modules/simpletest/tests/database_test.test
Test that we can insert multiple blob fields in the same query.
DatabaseInsertLOBTestCase::testInsertOneBlob in modules/simpletest/tests/database_test.test
Test that we can insert a single blob field successfully.
DatabaseInsertTestCase::testInsertFieldOnlyDefinintion in modules/simpletest/tests/database_test.test
Test that we can specify fields without values and specify values later.
DatabaseInsertTestCase::testMultiInsert in modules/simpletest/tests/database_test.test
Test that we can insert multiple records in one query object.
DatabaseInsertTestCase::testRepeatedInsert in modules/simpletest/tests/database_test.test
Test that an insert object can be reused with new data after it executes.
DatabaseInsertTestCase::testSimpleInsert in modules/simpletest/tests/database_test.test
Test the very basic insert functionality.
DatabaseInvalidDataTestCase::testInsertDuplicateData in modules/simpletest/tests/database_test.test
Traditional SQL database systems abort inserts when invalid data is encountered.
DatabaseLoggingTestCase::testEnableLogging in modules/simpletest/tests/database_test.test
Test that we can log the existence of a query.
DatabaseLoggingTestCase::testEnableMultiConnectionLogging in modules/simpletest/tests/database_test.test
Test that we can log queries separately on different connections.
DatabaseLoggingTestCase::testEnableMultiLogging in modules/simpletest/tests/database_test.test
Test that we can run two logs in parallel.
DatabaseLoggingTestCase::testEnableTargetLogging in modules/simpletest/tests/database_test.test
Test that we can log queries against multiple targets on the same connection.
DatabaseLoggingTestCase::testEnableTargetLoggingNoTarget in modules/simpletest/tests/database_test.test
Test that logs to separate targets collapse to the same connection properly.
DatabaseMergeTestCase::testMergeInsert in modules/simpletest/tests/database_test.test
Confirm that we can merge-insert a record successfully.
DatabaseMergeTestCase::testMergeInsertWithoutUpdate in modules/simpletest/tests/database_test.test
Test that we can merge-insert without any update fields.
DatabaseMergeTestCase::testMergeUpdate in modules/simpletest/tests/database_test.test
Confirm that we can merge-update a record successfully.
DatabaseMergeTestCase::testMergeUpdateExcept in modules/simpletest/tests/database_test.test
Confirm that we can merge-update a record successfully, with exclusion.
DatabaseMergeTestCase::testMergeUpdateExplicit in modules/simpletest/tests/database_test.test
Confirm that we can merge-update a record successfully, with alternate replacement.
DatabaseMergeTestCase::testMergeUpdateExpression in modules/simpletest/tests/database_test.test
Confirm that we can merge-update a record successfully, with expressions.
DatabaseMergeTestCase::testMergeUpdateWithoutUpdate in modules/simpletest/tests/database_test.test
Confirm that we can merge-update without any update fields.
DatabaseQueryTestCase::testArraySubstitution in modules/simpletest/tests/database_test.test
Test that we can specify an array of values in the query by simply passing in an array.
DatabaseRangeQueryTestCase::testRangeQuery in modules/simpletest/tests/database_test.test
Confirm that range query work and return correct result.
DatabaseRegressionTestCase::testRegression_310447 in modules/simpletest/tests/database_test.test
Regression test for #310447.
DatabaseSelectPagerDefaultTestCase::testEvenPagerQuery in modules/simpletest/tests/database_test.test
Confirm that a pager query returns the correct results.
DatabaseSelectPagerDefaultTestCase::testOddPagerQuery in modules/simpletest/tests/database_test.test
Confirm that a pager query returns the correct results.
DatabaseTransactionTestCase::testCommittedTransaction in modules/simpletest/tests/database_test.test
Test committed transaction.
DatabaseTransactionTestCase::testTransactionRollBackNotSupported in modules/simpletest/tests/database_test.test
Test transaction rollback on a database that does not support transactions.
DatabaseTransactionTestCase::testTransactionRollBackSupported in modules/simpletest/tests/database_test.test
Test transaction rollback on a database that supports transactions.
DatabaseUpdateComplexTestCase::testBetweenConditionUpdate in modules/simpletest/tests/database_test.test
Test BETWEEN conditional clauses.
DatabaseUpdateComplexTestCase::testInConditionUpdate in modules/simpletest/tests/database_test.test
Test WHERE IN clauses.
DatabaseUpdateComplexTestCase::testLikeConditionUpdate in modules/simpletest/tests/database_test.test
Test LIKE conditionals.
DatabaseUpdateComplexTestCase::testNotInConditionUpdate in modules/simpletest/tests/database_test.test
Test WHERE NOT IN clauses.
DatabaseUpdateComplexTestCase::testOrConditionUpdate in modules/simpletest/tests/database_test.test
Test updates with OR conditionals.
DatabaseUpdateComplexTestCase::testUpdateExpression in modules/simpletest/tests/database_test.test
Test update with expression values.
DatabaseUpdateComplexTestCase::testUpdateOnlyExpression in modules/simpletest/tests/database_test.test
Test update with only expression values.
DatabaseUpdateLOBTestCase::testUpdateMultipleBlob in modules/simpletest/tests/database_test.test
Confirm that we can update two blob columns in the same table.
DatabaseUpdateLOBTestCase::testUpdateOneBlob in modules/simpletest/tests/database_test.test
Confirm that we can update a blob column.
DatabaseUpdateTestCase::testMultiGTUpdate in modules/simpletest/tests/database_test.test
Confirm that we can update a multiple records with a non-equality condition.
DatabaseUpdateTestCase::testMultiUpdate in modules/simpletest/tests/database_test.test
Confirm that we can update a multiple records successfully.
DatabaseUpdateTestCase::testSimpleUpdate in modules/simpletest/tests/database_test.test
Confirm that we can update a single record successfully.
DatabaseUpdateTestCase::testWhereAndConditionUpdate in modules/simpletest/tests/database_test.test
Confirm that we can stack condition and where calls.
DatabaseUpdateTestCase::testWhereUpdate in modules/simpletest/tests/database_test.test
Confirm that we can update a multiple records with a where call.
DBLogTestCase::doUser in modules/dblog/dblog.test
Generate and verify user events.
DBLogTestCase::testDBLogAddAndClear in modules/dblog/dblog.test
Login an admin user, create dblog event, and test clearing dblog functionality through the admin interface.
DBLogTestCase::verifyCron in modules/dblog/dblog.test
Verify cron applies the dblog row limit.
DBLogTestCase::verifyRowLimit in modules/dblog/dblog.test
Verify setting of the dblog row limit.
dblog_cron in modules/dblog/dblog.module
Implementation of hook_cron().
dblog_event in modules/dblog/dblog.admin.inc
Menu callback; displays details about a log message.
drupalCreateNode in modules/simpletest/drupal_web_test_case.php
Creates a node based on default settings.
drupalCreateRole in modules/simpletest/drupal_web_test_case.php
Internal helper function; Create a role with specified permissions.
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.
error_test_trigger_pdo_exception in modules/simpletest/tests/error_test.module
Menu callback; trigger an exception to test the exception handler.
execute in includes/database/query.inc
FieldSqlStorageTestCase::testEntityTypeId in modules/field/modules/field_sql_storage/field_sql_storage.test
FieldSqlStorageTestCase::testFieldAttachSaveMissingData in modules/field/modules/field_sql_storage/field_sql_storage.test
Tests insert and update with missing or NULL fields.
FileSaveTest::testFileSave in modules/simpletest/tests/file.test
FileSaveUploadTest::setUp in modules/simpletest/tests/file.test
FileSaveUploadTest::testNormal in modules/simpletest/tests/file.test
Test the file_save_upload() function.
FilterAdminTestCase::checkFilterFormats in modules/filter/filter.test
Query the database to get the two basic formats.
FilterAdminTestCase::getFilter in modules/filter/filter.test
Get filter by name.
FilterAdminTestCase::testFilterAdmin in modules/filter/filter.test
Test filter administration functionality.
FilterTestCase::createFormat in modules/filter/filter.test
filter_admin_delete in modules/filter/filter.admin.inc
Menu callback; confirm deletion of a format.
filter_admin_format_form_submit in modules/filter/filter.admin.inc
Process text format form submissions.
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_list_format in modules/filter/filter.module
Retrieve a list of filters for a certain format.
filter_update_7001 in modules/filter/filter.install
Break out "escape HTML filter" option to its own filter.
findTables in includes/database/sqlite/schema.inc
Find all tables that are like the specified base table name.
findTables in includes/database/schema.inc
Find all tables that are like the specified base table name.
flood_is_allowed in includes/common.inc
Check if the current visitor (hostname/IP) is allowed to proceed with the specified event.
ForumTestCase::createForum in modules/forum/forum.test
Create a forum container or a forum.
ForumTestCase::verifyForums in modules/forum/forum.test
Verify the logged in user has the desired access to the various forum nodes.
forum_get_forums in modules/forum/forum.module
Returns a list of all forums for a given taxonomy id
forum_install in modules/forum/forum.install
Implementation of hook_install().
forum_node_delete in modules/forum/forum.module
Implementation of hook_node_delete().
forum_node_insert in modules/forum/forum.module
Implementation of hook_node_insert().
forum_node_load in modules/forum/forum.module
Implementation of hook_node_load().
forum_node_update in modules/forum/forum.module
Implementation of hook_node_update().
forum_node_validate in modules/forum/forum.module
Implementation of hook_node_validate().
forum_taxonomy in modules/forum/forum.module
Implementation of hook_taxonomy().
forum_term_load in modules/forum/forum.module
Fetch a forum term.
forum_uninstall in modules/forum/forum.install
Implementation of hook_uninstall().
getComment in includes/database/mysql/schema.inc
Retrieve a table or column comment.
getComment in includes/database/pgsql/schema.inc
Retrieve a table or column comment.
HelpTestCase::getModuleList in modules/help/help.test
Get list of enabled modules.
HookBootExitTestCase::testHookBootExit in modules/simpletest/tests/bootstrap.test
Test calling of hook_boot() and hook_exit().
hook_actions_delete in modules/trigger/trigger.api.php
Execute code after an action is deleted.
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_insert in modules/node/node.api.php
Respond to node insertion.
hook_load in modules/node/node.api.php
Load node-type-specific information.
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
The node is being displayed as a search result.
hook_node_update_index in modules/node/node.api.php
The node is being indexed.
hook_search in modules/search/search.api.php
Define a custom search routine.
hook_taxonomy_term_load in modules/taxonomy/taxonomy.api.php
Act on taxonomy terms when loaded.
hook_update in modules/node/node.api.php
Respond to node updating.
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.
ImportOPMLTestCase::submitImportForm in modules/aggregator/aggregator.test
Submit form with invalid, empty and valid OPML files.
ImportOPMLTestCase::validateImportFormFields in modules/aggregator/aggregator.test
Submit form filled with invalid fields.
install_verify_drupal in ./install.php
Verify if Drupal is installed.
introspectSchema in includes/database/sqlite/schema.inc
Find out the schema of a table.
IPAddressBlockingTestCase::testIPAddressValidation in modules/system/system.test
Test a variety of user input to confirm correct validation and saving of data.
language_list in includes/bootstrap.inc
Get a list of languages set up indexed by the specified key
list_themes in includes/theme.inc
Return a list of all currently available themes.
locale in modules/locale/locale.module
Provides interface translation services.
LocaleUninstallFunctionalTest::testUninstallProcess in modules/locale/locale.test
Check if the values of the Locale variables are correct after uninstall.
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_install in modules/locale/locale.install
Implementation of hook_install().
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
Implementation of hook_uninstall().
locale_update_6000 in modules/locale/locale.install
{locales_meta} table became {languages}.
locale_update_6005 in modules/locale/locale.install
Change language setting variable of content types.
MenuIncTestCase::testMenuHiearchy in modules/simpletest/tests/menu.test
Tests for menu hiearchy.
MenuIncTestCase::testMenuName in modules/simpletest/tests/menu.test
Tests for menu_name parameter for hook_menu().
MenuRebuildTestCase::testMenuRebuildByVariable in modules/simpletest/tests/menu.test
Test if the 'menu_rebuild_needed' variable triggers a menu_rebuild() call.
MenuTestCase::addMenuLink in modules/menu/menu.test
Add a menu link using the menu module UI.
MenuTestCase::disableMenuLink in modules/menu/menu.test
Disable a menu link.
MenuTestCase::doMenuTests in modules/menu/menu.test
Test menu functionality using navigation menu.
MenuTestCase::enableMenuLink in modules/menu/menu.test
Enable a menu link.
MenuTestCase::getStandardMenuLink in modules/menu/menu.test
Get standard menu link.
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_edit_menu_validate in modules/menu/menu.admin.inc
Validates the human and machine-readable names when adding or editing a menu.
menu_enable in modules/menu/menu.module
Implementation of hook_enable().
menu_link_delete in includes/menu.inc
Delete one or several menu links.
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
Implementation of 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.
ModuleUnitTest::testModuleList in modules/simpletest/tests/module.test
The basic functionality of module_list().
module_enable in includes/module.inc
Enable a given list of modules.
module_implements in includes/module.inc
Determine which modules are implementing a hook.
module_list in includes/module.inc
Collect a list of all loaded modules. During the bootstrap, return only vital modules. See bootstrap.inc
NodeAccessRecordsAlterUnitTest::testGrantAlter in modules/node/node.test
Create a node and test the creation of node access rules.
NodeRevisionsTestCase::testRevisions in modules/node/node.test
Check node revision related operations.
NodeSaveTestCase::testImport in modules/node/node.test
Import test, to check if custom node ids are saved properly. Workflow:
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
Implementation of 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_configure in modules/node/node.admin.inc
Menu callback; presents general node configuration options.
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_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 in modules/node/node.module
Implementation of hook_search().
node_type_delete_confirm in modules/node/content_types.inc
Menu callback; delete a single content type.
numberOfItems in modules/system/system.queue.inc
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.
pager_query in includes/pager.inc
Perform a paged database query.
PathTestCase::getPID in modules/path/path.test
path_admin_form_validate in modules/path/path.admin.inc
Verify that a new URL alias is valid
path_form_alter in modules/path/path.module
Implementation of hook_form_alter().
path_load in modules/path/path.module
Fetch a specific URL alias from the database.
path_node_validate in modules/path/path.module
Implementation of hook_node_validate().
poll_cron in modules/poll/poll.module
Implementation of hook_cron().
poll_load in modules/poll/poll.module
Implementation of hook_load().
preloadRegistry in modules/simpletest/drupal_web_test_case.php
This method is called by DrupalWebTestCase::setUp, and preloads the registry from the testing site to cut down on the time it takes to setup a clean environment for the current test run.
ProfileTestCase::createProfileField in modules/profile/profile.test
Create a profile field.
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
Implementation of hook_block_configure().
profile_block_view in modules/profile/profile.module
Implementation of hook_block_view().
profile_browse in modules/profile/profile.pages.inc
Menu callback; display a list of user information.
profile_categories in modules/profile/profile.module
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_load in modules/profile/profile.module
Implementation of hook_user_load().
profile_view_profile in modules/profile/profile.module
queryTableInformation in includes/database/pgsql/schema.inc
Fetch the list of blobs and sequences used on a table.
RegistryParseFilesTestCase::setUp in modules/simpletest/tests/registry.test
RegistryParseFilesTestCase::testRegistryParseFiles in modules/simpletest/tests/registry.test
testRegistryParseFiles
RegistryParseFileTestCase::testRegistryParseFile in modules/simpletest/tests/registry.test
testRegistryParseFile
registry_get_parsed_files in includes/registry.inc
Return the list of files in registry_file
RemoveFeedTestCase::testRemoveFeed in modules/aggregator/aggregator.test
Remove a feed and ensure that all it services are removed.
runTestQuery in includes/install.inc
SchemaTestCase::testSchema in modules/simpletest/tests/schema.test
SchemaTestCase::tryInsert in modules/simpletest/tests/schema.test
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
Implementation of hook_node_update_index().
search_touch_node in modules/search/search.module
Change a node's changed timestamp to 'now' to force reindexing.
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).
search_wipe in modules/search/search.module
Wipes a part of or the entire search index.
simpletest_clean_results_table in modules/simpletest/simpletest.module
Clear the test result tables.
StatisticsBlockVisitorsTestCase::testIPAddressBlocking in modules/statistics/statistics.test
Blocks an IP address via the top visitors report then uses the same page to unblock it.
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
Implementation of hook_update_index().
system_actions_configure in modules/system/system.module
Menu callback. Create the form for configuration of a single action.
system_actions_manage in modules/system/system.module
Menu callback. Display an overview of available and configured actions.
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
Implementation of hook_cron().
system_get_files_database in modules/system/system.module
Retrieves the current status of an array of files in the system table.
system_get_module_admin_tasks in modules/system/system.module
Generate a list of tasks offered by a specified module.
system_install in modules/system/system.install
Implementation of hook_install().
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_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_region_list in modules/system/system.module
Get a list of available regions from a specified theme.
system_update_6000 in modules/system/system.install
Remove auto_increment from {boxes} to allow adding custom blocks with visibility settings.
system_update_6001 in modules/system/system.install
Add version id column to {term_node} to allow taxonomy module to use revisions.
system_update_6009 in modules/system/system.install
The PHP filter is now a separate module.
system_update_6018 in modules/system/system.install
Add HTML corrector to HTML formats or replace the old module if it was in use.
system_update_6019 in modules/system/system.install
Reconcile small differences in the previous, manually created mysql and pgsql schemas so they are the same and can be represented by a single schema structure.
system_update_6021 in modules/system/system.install
Migrate the menu items from the old menu system to the new menu_links table.
system_update_6027 in modules/system/system.install
Add block cache.
system_update_6034 in modules/system/system.install
Rename permission "administer access control" to "administer permissions".
system_update_6036 in modules/system/system.install
Change the search schema and indexing.
system_update_6039 in modules/system/system.install
Rename permissions "edit foo content" to "edit any foo content". Also update poll module permission "create polls" to "create poll content".
system_update_6041 in modules/system/system.install
Change forum vocabulary not to be required by default and set the weight of the forum.module 1 higher than the taxonomy.module.
system_update_6045 in modules/system/system.install
Update blog, book and locale module permissions.
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_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.
tableExists in includes/database/schema.inc
Check if a table exists.
TaxonomyHooksTestCase::testTaxonomyTermHooks in modules/taxonomy/taxonomy.test
Test that hooks are run correctly on creating, editing and deleting a term.
TaxonomyTermTestCase::testTaxonomyNode in modules/taxonomy/taxonomy.test
Test that hook_node_$op implementations work correctly.
taxonomy_get_related in modules/taxonomy/taxonomy.module
Find all term objects related to a given term ID.
taxonomy_get_synonyms in modules/taxonomy/taxonomy.module
Return an array of synonyms of the given term ID.
taxonomy_get_synonym_root in modules/taxonomy/taxonomy.module
Return the term object that has the given string as a synonym.
taxonomy_get_term_data in modules/taxonomy/taxonomy.module
Return a term object from the taxonomy_term_data table.
taxonomy_test_get_antonyms in modules/simpletest/tests/taxonomy_test.module
Return an array of antonyms of the given term ID.
taxonomy_vocabulary_delete in modules/taxonomy/taxonomy.module
Delete a vocabulary.
template_preprocess_forum_topic_navigation in modules/forum/forum.module
Preprocess variables to format the next/previous forum topic navigation links.
translation_remove_from_set in modules/translation/translation.module
Remove a node from its translation set (if any) and update the set accordingly.
TriggerContentTestCase::testActionsContent in modules/trigger/trigger.test
Various tests, all in one function to assure they happen in the right order.
trigger_actions_delete in modules/trigger/trigger.module
Implementation of hook_actions_delete().
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_menu in modules/trigger/trigger.module
Implementation of hook_menu().
trigger_unassign_submit in modules/trigger/trigger.admin.inc
UpdateFeedItemTestCase::testUpdateFeedItem in modules/aggregator/aggregator.test
Test running "update items" from the 'admin/content/aggregator' page.
update_fix_compatibility in ./update.php
Disable anything in the {system} table that is not compatible with the current version of Drupal core.
UploadTestCase::testNodeUpload in modules/upload/upload.test
Create node; upload files to node; and edit, and delete uploads.
upload_file_download in modules/upload/upload.module
Implementation of hook_file_download().
upload_file_load in modules/upload/upload.module
Implementation of hook_file_load().
upload_node_load in modules/upload/upload.module
Implementation of hook_node_load().
upload_total_space_used in modules/upload/upload.module
Determine how much disk space is occupied by uploaded files.
UserBlocksUnitTests::insertSession in modules/user/user.test
Insert a user session into the {sessions} table. This function is used since we cannot log in more than one user at the same time in tests.
UserBlocksUnitTests::testWhosOnlineBlock in modules/user/user.test
Test the Who's Online block.
UserSaveTestCase::testUserImport in modules/user/user.test
Test creating a user with arbitrary uid.
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 log in the user locally.
user_block_view in modules/user/user.module
Implementation of 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_load_multiple in modules/user/user.module
Load multiple users based on certain conditions.
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_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 {files} table and make them managed files.
variable_init 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.
_batch_page in includes/batch.inc
State-based dispatcher for the batch processing page.
_block_load_blocks in modules/block/block.module
Load blocks information from the database.
_block_rehash in modules/block/block.module
Update the 'block' DB table with the blocks currently exported by modules.
_blogapi_space_used in modules/blogapi/blogapi.module
_book_update_outline in modules/book/book.module
Common helper function to handles additions and updates to the book outline.
_comment_delete_thread in modules/comment/comment.admin.inc
Perform the actual deletion of a comment and all its replies.
_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
_filter_tips in modules/filter/filter.module
Helper function for fetching filter tips.
_forum_topics_unread in modules/forum/forum.module
Calculate the number of nodes the user has not yet read and are newer than NODE_NEW_LIMIT.
_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
_sess_read in includes/session.inc
Session handler assigned by session_set_save_handler().
_trigger_get_hook_actions in modules/trigger/trigger.admin.inc
Get the actions that have already been defined for this type-hook-op combination.
_trigger_get_hook_aids in modules/trigger/trigger.module
Get the aids of actions to be executed for a hook-op combination.
_update_cache_get in modules/update/update.module
Retrieve data from the private update status cache table.

Code

includes/database/database.inc, line 1770

<?php
function db_query($query, $args = array(), $options = array()) {
  if (!is_array($args)) {
    $args = func_get_args();
    array_shift($args);
  }
  list($query, $args, $options) = _db_query_process_args($query, $args, $options);

  return Database::getConnection($options['target'])->query($query, $args, $options);
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen