Related topics

Namesort iconDescription
Database abstraction layerAllow the use of different database servers using the same code base.

Functions that call db_query()

Namesort iconLocationDescription
aggregator_blockdrupal/modules/aggregator.moduleImplementation of hook_block().
aggregator_crondrupal/modules/aggregator.moduleImplementation of hook_cron().
aggregator_form_category_validatedrupal/modules/aggregator.moduleValidate aggregator_form_feed form submissions.
aggregator_form_feeddrupal/modules/aggregator.moduleGenerate a form to add/edit feed sources.
aggregator_form_feed_validatedrupal/modules/aggregator.moduleValidate aggregator_form_feed form submissions.
aggregator_menudrupal/modules/aggregator.moduleImplementation of hook_menu().
aggregator_page_categoriesdrupal/modules/aggregator.moduleMenu callback; displays all the categories used by the aggregator.
aggregator_page_categorydrupal/modules/aggregator.moduleMenu callback; displays all the items aggregated in a particular category.
aggregator_page_opmldrupal/modules/aggregator.moduleMenu callback; generates an OPML representation of all feeds.
aggregator_page_rssdrupal/modules/aggregator.moduleMenu callback; generate an RSS 0.92 feed of aggregator items or categories.
aggregator_page_sourcedrupal/modules/aggregator.moduleMenu callback; displays all the items captured from a particular feed.
aggregator_page_sourcesdrupal/modules/aggregator.moduleMenu callback; displays all the feeds used by the aggregator.
aggregator_refreshdrupal/modules/aggregator.moduleChecks a news feed for new items.
aggregator_save_categorydrupal/modules/aggregator.moduleAdd/edit/delete aggregator categories.
aggregator_save_feeddrupal/modules/aggregator.moduleAdd/edit/delete an aggregator feed.
archive_calendardrupal/modules/archive.moduleGenerates a monthly calendar, for display in the archive block.
block_admin_configuredrupal/modules/block.moduleMenu callback; displays the block configuration form.
block_admin_display_submitdrupal/modules/block.moduleProcess main block administration form submission.
block_blockdrupal/modules/block.moduleImplementation of hook_block().
block_box_delete_confirm_submitdrupal/modules/block.moduleDeletion of custom blocks.
block_listdrupal/modules/block.moduleReturn all blocks in the specified region for the current user.
block_userdrupal/modules/block.moduleImplementation of hook_user().
blog_formdrupal/modules/blog.moduleImplementation of hook_form().
book_admin_orphandrupal/modules/book.moduleMenu callback; displays a listing of all orphaned book pages.
book_admin_overviewdrupal/modules/book.moduleReturns an administrative overview of all books.
book_blockdrupal/modules/book.moduleImplementation of hook_block().
book_deletedrupal/modules/book.moduleImplementation of hook_delete().
book_exportdrupal/modules/book.moduleMenu callback; Generates various representation of a book page with all descendants and prints the requested representation to output.
book_insertdrupal/modules/book.moduleImplementation of hook_insert().
book_loaddrupal/modules/book.moduleImplementation of hook_load().
book_locationdrupal/modules/book.moduleGiven a node, this function returns an array of 'book node' objects representing the path in the book tree from the root to the parent of the given node.
book_location_downdrupal/modules/book.moduleGiven a node, this function returns an array of 'book node' objects representing the path in the book tree from the given node down to the last sibling of it.
book_menudrupal/modules/book.moduleImplementation of hook_menu().
book_nextdrupal/modules/book.moduleFetches the node object of the next page of the book.
book_nodeapidrupal/modules/book.moduleImplementation of hook_nodeapi().
book_outline_submitdrupal/modules/book.moduleHandles book outline form submissions.
book_prevdrupal/modules/book.moduleFetches the node object of the previous page of the book.
book_recursedrupal/modules/book.moduleTraverses the book tree. Applies the $visit_pre() callback to each node, is called recursively for each child of the node (in weight, title order). Finally appends the output of the $visit_post() callback to the output before returning the generated...
book_renderdrupal/modules/book.moduleMenu callback; prints a listing of all books.
book_tocdrupal/modules/book.moduleReturns an array of titles and nid entries of book pages in table of contents order.
book_treedrupal/modules/book.moduleReturns an HTML nested list (wrapped in a menu-class div) representing the book nodes as a tree.
book_updatedrupal/modules/book.moduleImplementation of hook_update().
cache_clear_alldrupal/includes/bootstrap.incExpire data from the cache.
cache_getdrupal/includes/bootstrap.incReturn data from the persistent cache.
cache_setdrupal/includes/bootstrap.incStore data in the persistent cache.
comment_admin_overview_submitdrupal/modules/comment.moduleExecute the chosen 'Update option' on the selected comments, such as publishing, unpublishing or deleting.
comment_deletedrupal/modules/comment.moduleMenu callback; delete a comment.
comment_multiple_delete_confirmdrupal/modules/comment.moduleList the selected comments and verify that the admin really wants to delete them.
comment_nodeapidrupal/modules/comment.moduleImplementation of hook_nodeapi().
comment_num_newdrupal/modules/comment.moduleget number of new comments for current user and specified node
comment_savedrupal/modules/comment.moduleAccepts a submission of new or changed comment content.
comment_userdrupal/modules/comment.moduleImplementation of hook_user().
contact_admin_categoriesdrupal/modules/contact.moduleCategories/list tab.
contact_admin_deletedrupal/modules/contact.moduleCategory delete page.
contact_admin_delete_submitdrupal/modules/contact.moduleProcess category delete form submission.
contact_admin_editdrupal/modules/contact.moduleCategory edit page.
contact_admin_edit_submitdrupal/modules/contact.moduleProcess the contact category edit page form submission.
contact_mail_pagedrupal/modules/contact.moduleSite-wide contact page
contact_mail_page_submitdrupal/modules/contact.moduleProcess the site-wide contact page form submission.
db_check_setupdrupal/includes/database.pgsql.incVerify if the database is set up correctly.
db_lock_tabledrupal/includes/database.mysqli.incLock a table.
db_next_iddrupal/includes/database.mysqli.incReturn a new unique ID in the given sequence.
db_unlock_tablesdrupal/includes/database.mysqli.incUnlock all locked tables.
do_searchdrupal/modules/search.moduleDo a query on the full-text search index for a word or words.
drupal_client_pagedrupal/modules/drupal.moduleFormats a list of all clients.
drupal_client_pingdrupal/modules/drupal.moduleCallback function from drupal_xmlrpc() called when another site pings this one.
drupal_crondrupal/modules/drupal.moduleImplementation of hook_cron(); handles pings to and from the site.
drupal_get_filenamedrupal/includes/bootstrap.incReturns 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_versiondrupal/includes/install.incReturns the currently installed schema version for a module.
drupal_is_denieddrupal/includes/bootstrap.incPerform an access check for a given mask and rule type. Rules are usually created via admin/access/rules page.
drupal_lookup_pathdrupal/includes/path.incGiven an alias, return its Drupal system URL if one exists. Given a Drupal system URL return its alias if one exists.
drupal_notifydrupal/modules/drupal.moduleSends a ping to the Drupal directory server.
drupal_set_installed_schema_versiondrupal/includes/install.incUpdate the installed version information for a module.
fileupload_deletecontributions/docs/developer/examples/fileupload.moduleImplementation of hook_delete().
fileupload_file_downloadcontributions/docs/developer/examples/fileupload.moduleImplementation of hook_file_download.
fileupload_insertcontributions/docs/developer/examples/fileupload.moduleImplementation of hook_insert().
fileupload_loadcontributions/docs/developer/examples/fileupload.moduleImplementation of hook_load().
fileupload_updatecontributions/docs/developer/examples/fileupload.moduleImplementation of hook_update().
filter_admin_deletedrupal/modules/filter.moduleMenu callback; confirm deletion of a format.
filter_admin_delete_submitdrupal/modules/filter.moduleProcess filter delete form submission.
filter_admin_format_form_submitdrupal/modules/filter.moduleProcess filter format form submissions.
filter_admin_format_form_validatedrupal/modules/filter.moduleValidate filter format form submissions.
filter_admin_order_submitdrupal/modules/filter.moduleProcess filter order configuration form submission.
filter_formatsdrupal/modules/filter.moduleRetrieve a list of input formats.
filter_format_allowcachedrupal/modules/filter.moduleCheck if text in a certain input format is allowed to be cached.
filter_list_formatdrupal/modules/filter.moduleRetrieve a list of filters for a certain format.
flood_is_alloweddrupal/includes/common.incCheck if the current visitor (hostname/IP) is allowed to proceed with the specified event. The user is allowed to proceed if he did not trigger the specified event more than $threshold times per hour.
flood_register_eventdrupal/includes/common.incRegister an event for the current visitor (hostname/IP) to the flood control mechanism.
forum_deletedrupal/modules/forum.moduleImplementation of hook_delete().
forum_get_forumsdrupal/modules/forum.moduleReturns a list of all forums for a given taxonomy id
forum_insertdrupal/modules/forum.moduleImplementation of hook_insert().
forum_loaddrupal/modules/forum.moduleImplementation of hook_load().
forum_nodeapidrupal/modules/forum.moduleImplementation of hook_nodeapi().
forum_taxonomydrupal/modules/forum.moduleImplementation of hook_taxonomy().
forum_updatedrupal/modules/forum.moduleImplementation of hook_update().
forum_validatedrupal/modules/forum.moduleImplementation of hook_validate().
hook_croncontributions/docs/developer/hooks/core.phpPerform periodic actions.
hook_deletecontributions/docs/developer/hooks/node.phpRespond to node deletion.
hook_exitcontributions/docs/developer/hooks/core.phpPerform cleanup tasks.
hook_file_downloadcontributions/docs/developer/hooks/core.phpAllow file downloads.
hook_initcontributions/docs/developer/hooks/core.phpPerform setup tasks.
hook_insertcontributions/docs/developer/hooks/node.phpRespond to node insertion.
hook_installcontributions/docs/developer/hooks/install.phpInstall the current version of the database schema.
hook_loadcontributions/docs/developer/hooks/node.phpLoad node-type-specific information.
hook_updatecontributions/docs/developer/hooks/node.phpRespond to node updating.
list_themesdrupal/includes/theme.incProvides a list of currently available themes.
list_theme_enginesdrupal/includes/theme.incProvides a list of currently available theme engines
localedrupal/modules/locale.moduleProvides interface translation services.
locale_add_language_form_validatedrupal/includes/locale.incValidate the language addition form.
locale_admin_manage_delete_form_submitdrupal/modules/locale.moduleProcess language deletion submissions.
locale_admin_string_deletedrupal/modules/locale.moduleDelete a string.
locale_refresh_cachedrupal/modules/locale.moduleRefreshes database stored cache of translations.
locale_supported_languagesdrupal/modules/locale.moduleReturns list of languages supported on this site.
menu_delete_itemdrupal/modules/menu.moduleDelete a menu item from the database. If $item['mid'] is specified, then this is used to find the existing item; otherwise, $item['path'] is used.
menu_edit_item_formdrupal/modules/menu.modulePresent the menu item editing form.
menu_edit_menu_formdrupal/modules/menu.moduleMenu callback; handle the adding/editing of a new menu.
menu_form_alterdrupal/modules/menu.moduleImplementation of hook_form_alter(). Add menu item fields to the node form.
menu_item_delete_formdrupal/modules/menu.moduleMenu callback; delete a single custom item.
menu_reset_itemdrupal/modules/menu.moduleMenu callback; reset a single modified item.
menu_save_itemdrupal/modules/menu.moduleSave a menu item to the database.
module_listdrupal/includes/module.incCollect a list of all loaded modules. During the bootstrap, return only vital modules. See bootstrap.inc
nodeapi_example_nodeapicontributions/docs/developer/examples/nodeapi_example.moduleImplementation of hook_nodeapi().
node_accessdrupal/modules/node.moduleDetermine whether the current user may perform the given operation on the specified node.
node_access_example_form_altercontributions/docs/developer/examples/node_access_example.moduleImplementation of hook_form_alter().
node_access_example_nodeapicontributions/docs/developer/examples/node_access_example.moduleImplementation of hook_nodeapi().
node_access_view_all_nodesdrupal/modules/node.moduleDetermine whether the user has a global viewing grant for all nodes.
node_admin_nodes_submitdrupal/modules/node.moduleGenerate the content administration overview.
node_comment_modedrupal/modules/node.moduleRetrieve the comment mode for the given node ID (none, read, or read/write).
node_crondrupal/modules/node.moduleImplementation of hook_cron().
node_deletedrupal/modules/node.moduleDelete a node.
node_example_deletecontributions/docs/developer/examples/node_example.moduleImplementation of hook_delete().
node_example_insertcontributions/docs/developer/examples/node_example.moduleImplementation of hook_insert().
node_example_loadcontributions/docs/developer/examples/node_example.moduleImplementation of hook_load().
node_example_nodeapicontributions/docs/developer/examples/node_example.moduleImplementation of hook_nodeapi().
node_example_updatecontributions/docs/developer/examples/node_example.moduleImplementation of hook_update().
node_last_vieweddrupal/modules/node.moduleRetrieves the timestamp at which the current user last viewed the specified node.
node_loaddrupal/modules/node.moduleLoad a node object from the database.
node_menudrupal/modules/node.moduleImplementation of hook_menu().
node_pagedrupal/modules/node.moduleMenu callback; dispatches control to the appropriate operation handler.
node_revision_deletedrupal/modules/node.moduleDelete the revision with specified revision number. A "delete revision" nodeapi event is invoked when a revision is deleted.
node_revision_listdrupal/modules/node.moduleReturn a list of all the existing revision numbers.
node_savedrupal/modules/node.moduleSave a node object into the database.
node_searchdrupal/modules/node.moduleImplementation of hook_search().
node_tag_newdrupal/modules/node.moduleUpdate the 'last viewed' timestamp of the specified node for current user.
node_update_indexdrupal/modules/node.moduleImplementation of hook_update_index().
node_userdrupal/modules/node.moduleImplementation of hook_user().
pager_querydrupal/includes/pager.incPerform a paged database query.
path_admin_deletedrupal/modules/path.modulePost-confirmation; delete an URL alias.
path_form_alterdrupal/modules/path.moduleImplementation of hook_form_alter().
path_form_submitdrupal/modules/path.moduleSave URL alias to the database.
path_form_validatedrupal/modules/path.moduleVerify that URL alias is valid.
path_loaddrupal/modules/path.moduleFetch a specific URL alias from the database.
path_nodeapidrupal/modules/path.moduleImplementation of hook_nodeapi().
path_set_aliasdrupal/modules/path.moduleSet an aliased path for a given Drupal path, preventing duplicates.
ping_crondrupal/modules/ping.moduleImplementation of hook_cron().
poll_blockdrupal/modules/poll.moduleImplementation of hook_block().
poll_crondrupal/modules/poll.moduleImplementation of hook_cron().
poll_deletedrupal/modules/poll.moduleImplementation of hook_delete().
poll_loaddrupal/modules/poll.moduleImplementation of hook_load().
poll_updatedrupal/modules/poll.moduleImplementation of hook_update().
poll_userdrupal/modules/poll.moduleImplementation of hook_user().
poll_votedrupal/modules/poll.moduleCallback for processing a vote
profile_admin_overviewdrupal/modules/profile.moduleMenu callback; display a listing of all editable profile fields.
profile_blockdrupal/modules/profile.moduleImplementation of hook_block().
profile_browsedrupal/modules/profile.moduleMenu callback; display a list of user information.
profile_field_deletedrupal/modules/profile.moduleMenu callback; deletes a field from all user profiles.
profile_field_delete_submitdrupal/modules/profile.moduleProcess a field delete form submission.
profile_field_formdrupal/modules/profile.moduleMenu callback: Generate a form to add/edit a user profile field.
profile_field_form_submitdrupal/modules/profile.moduleProcess profile_field_form submissions.
profile_field_form_validatedrupal/modules/profile.moduleValidate profile_field_form submissions.
profile_userdrupal/modules/profile.moduleImplementation of hook_user().
search_indexdrupal/modules/search.moduleUpdate the full-text search index for a particular item.
search_update_totalsdrupal/modules/search.moduleThis function is called on shutdown to ensure that search_total is always up to date (even if cron times out or otherwise fails).
search_wipedrupal/modules/search.moduleWipes a part of or the entire search index.
sess_regeneratedrupal/includes/session.incCalled when an anonymous user becomes authenticated or vice-versa.
statistics_crondrupal/modules/statistics.moduleImplementation of hook_cron().
statistics_exitdrupal/modules/statistics.moduleImplementation of hook_exit().
statistics_getdrupal/modules/statistics.moduleRetrieves a node's "view statistics".
statistics_nodeapidrupal/modules/statistics.moduleImplementation of hook_nodeapi().
statistics_userdrupal/modules/statistics.moduleImplementation of hook_user().
system_get_files_databasedrupal/modules/system.moduleRetrieves the current status of an array of files in the system table.
system_initialize_theme_blocksdrupal/modules/system.moduleAssign an initial, default set of blocks for a theme.
system_modulesdrupal/modules/system.moduleMenu callback; displays a listing of all modules.
system_region_listdrupal/modules/system.moduleGet a list of available regions from a specified theme.
system_theme_datadrupal/modules/system.moduleCollect data about all currently available themes
system_update_159drupal/database/updates.incRetrieve data out of the old_revisions table and put into new revision system.
system_update_178drupal/database/updates.incUpdate base paths for relative URLs in node and comment content.
system_update_179drupal/database/updates.incUpdate base paths for relative URLs in custom blocks, profiles and various variables.
taxonomy_form_alterdrupal/modules/taxonomy.moduleGenerate a form for selecting terms to associate with a node.
taxonomy_get_childrendrupal/modules/taxonomy.moduleFind all children of a term ID.
taxonomy_get_parentsdrupal/modules/taxonomy.moduleFind all parents of a given term ID.
taxonomy_get_relateddrupal/modules/taxonomy.moduleFind all term objects related to a given term ID.
taxonomy_get_synonymsdrupal/modules/taxonomy.moduleReturn an array of synonyms of the given term ID.
taxonomy_get_synonym_rootdrupal/modules/taxonomy.moduleReturn the term object that has the given string as a synonym.
taxonomy_get_termdrupal/modules/taxonomy.moduleReturn the term object matching a term ID.
taxonomy_get_term_by_namedrupal/modules/taxonomy.moduleTry to map a string to an existing term, as for glossary use.
taxonomy_get_treedrupal/modules/taxonomy.moduleCreate a hierarchical representation of a vocabulary.
taxonomy_get_vocabulariesdrupal/modules/taxonomy.moduleReturn an array of all vocabulary objects.
taxonomy_get_vocabularydrupal/modules/taxonomy.moduleReturn the vocabulary object matching a vocabulary ID.
taxonomy_node_deletedrupal/modules/taxonomy.moduleRemove associations of a node to its terms.
taxonomy_node_get_termsdrupal/modules/taxonomy.moduleFind all terms associated to the given node, ordered by vocabulary and term weight.
taxonomy_node_get_terms_by_vocabularydrupal/modules/taxonomy.moduleFind all terms associated to the given node, within one vocabulary.
taxonomy_node_savedrupal/modules/taxonomy.moduleSave term associations for a given node.
taxonomy_term_count_nodesdrupal/modules/taxonomy.moduleGiven a term id, count the number of published nodes in it.
taxonomy_term_pagedrupal/modules/taxonomy.moduleMenu callback; displays all nodes associated with a term.
theme_aggregator_page_itemdrupal/modules/aggregator.moduleFormat an individual feed item for display on the aggregator page.
theme_forum_topic_navigationdrupal/modules/forum.moduleFormat the next/previous forum topic navigation links.
throttle_exitdrupal/modules/throttle.moduleImplementation of hook_exit().
update_convert_table_utf8drupal/update.phpConvert a single MySQL table to UTF-8.
update_do_updatesdrupal/update.phpPerform updates for one second or until finished.
update_fix_schema_versiondrupal/update.phpIf the schema version for Drupal core is stored in the variables table (4.6.x and earlier) move it to the schema_version column of the system table.
update_fix_sessionsdrupal/update.phpSystem update 130 changes the sessions table, which breaks the update script's ability to use session variables. This changes the table appropriately.
update_fix_watchdogdrupal/update.phpSystem update 142 changes the watchdog table, which breaks the update script's ability to use logging. This changes the table appropriately.
upload_space_useddrupal/modules/upload.moduleDetermine how much disk space is occupied by a user's uploaded files.
upload_total_space_useddrupal/modules/upload.moduleDetermine how much disk space is occupied by uploaded files.
user_accessdrupal/modules/user.moduleDetermine whether the user has a given privilege.
user_admin_accessdrupal/modules/user.moduleMenu callback: list all access rules
user_admin_access_adddrupal/modules/user.moduleMenu callback: add an access rule
user_admin_access_deletedrupal/modules/user.moduleMenu callback: delete an access rule
user_admin_access_editdrupal/modules/user.moduleMenu callback: edit an access rule
user_admin_permdrupal/modules/user.moduleMenu callback: administer permissions.
user_admin_roledrupal/modules/user.moduleMenu callback: administer roles.
user_blockdrupal/modules/user.moduleImplementation of hook_block().
user_get_authmapsdrupal/modules/user.moduleAccepts an user object, $account, or a DA name and returns an associative array of modules and DA names. Called at external login.
user_is_blockeddrupal/modules/user.moduleChecks for usernames blocked by user administration
user_loaddrupal/modules/user.moduleFetch a user object.
user_pass_resetdrupal/modules/user.moduleMenu callback; process one time login link and redirects to the user page on success.
user_rolesdrupal/modules/user.moduleRetrieve an array of roles matching specified conditions.
user_savedrupal/modules/user.moduleSave changes to a user account or add a new user.
variable_deldrupal/includes/bootstrap.incUnset a persistent variable.
variable_initdrupal/includes/bootstrap.incLoad the persistent variable table.
variable_setdrupal/includes/bootstrap.incSet a persistent variable.
watchdogdrupal/includes/bootstrap.incLog a system message.
watchdog_crondrupal/modules/watchdog.moduleImplementation of hook_cron().
watchdog_eventdrupal/modules/watchdog.moduleMenu callback; displays details about a log message.
watchdog_userdrupal/modules/watchdog.moduleImplementation of hook_user().
_aggregator_page_listdrupal/modules/aggregator.modulePrints an aggregator page listing a number of feed items. Various menu callbacks use this function to print their feeds.
_block_rehashdrupal/modules/block.moduleUpdate the 'blocks' DB table with the blocks currently exported by modules.
_comment_loaddrupal/modules/comment.moduleLoad the entire comment by cid.
_comment_update_node_statisticsdrupal/modules/comment.moduleUpdates the comment statistics for a given node. This should be called any time a comment is added, deleted, or updated.
_filter_tipsdrupal/modules/filter.moduleHelper function for fetching filter tips.
_forum_get_viddrupal/modules/forum.moduleReturns the vocabulary id for forum navigation.
_forum_topics_unreaddrupal/modules/forum.moduleCalculate the number of nodes the user has not yet read and are newer than NODE_NEW_LIMIT.
_locale_add_languagedrupal/includes/locale.incHelper function to add a language
_locale_admin_manage_screendrupal/includes/locale.incUser interface for the language management screen.
_locale_admin_manage_screen_submitdrupal/includes/locale.incProcess locale admin manager form submissions.
_locale_export_podrupal/includes/locale.incExports a Portable Object (Template) file for a language
_locale_import_one_stringdrupal/includes/locale.incImports a string into the database
_locale_import_podrupal/includes/locale.incParses Gettext Portable Object file information and inserts into database
_locale_string_deletedrupal/includes/locale.incDelete a language string.
_locale_string_editdrupal/includes/locale.incUser interface for string editing.
_locale_string_edit_submitdrupal/includes/locale.incProcess string editing form submissions. Saves all translations of one string submitted from a form.
_menu_builddrupal/includes/menu.incBuild the menu by querying both modules and the database.
_system_update_utf8drupal/database/updates.incConverts a set of tables to UTF-8 encoding.
_taxonomy_term_childrendrupal/modules/taxonomy.moduleHelper for taxonomy_term_count_nodes().

Functions called by db_query()

Namesort iconLocationDescription
db_prefix_tablesdrupal/includes/database.incAppend a database prefix to all tables in a query.
_db_querydrupal/includes/database.mysqli.incHelper function for db_query().
_db_query_callbackdrupal/includes/database.incHelper function for db_query().