db_rewrite_sql

Related topics

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

Functions that call db_rewrite_sql()

Namesort iconLocationDescription
block_listmodules/block/block.moduleReturn all blocks in the specified region for the current user.
blog_blockmodules/blog/blog.moduleImplementation of hook_block().
blog_feed_lastmodules/blog/blog.pages.incMenu callback; displays an RSS feed containing recent blog entries of all users.
blog_feed_usermodules/blog/blog.pages.incMenu callback; displays an RSS feed containing recent blog entries of a given user.
blog_page_lastmodules/blog/blog.pages.incMenu callback; displays a Drupal page containing recent blog entries of all users.
blog_page_usermodules/blog/blog.pages.incMenu callback; displays a Drupal page containing recent blog entries of a given user.
book_blockmodules/book/book.moduleImplementation of hook_block().
book_get_booksmodules/book/book.moduleReturns an array of all books.
comment_get_recentmodules/comment/comment.moduleFind a number of recent comments. This is done in two steps. 1. Find the n (specified by $number) nodes that have the most recent comments. This is done by querying node_comment_statistics which has an index on last_comment_timestamp, and is thus a...
comment_rendermodules/comment/comment.moduleRenders comment(s).
db_rewrite_sqlincludes/database.incRewrites node, taxonomy and comment queries. Use it for listing queries. Do not use FROM table1, table2 syntax, use JOIN instead.
forum_blockmodules/forum/forum.moduleImplementation of hook_block().
forum_get_forumsmodules/forum/forum.moduleReturns a list of all forums for a given taxonomy id
forum_term_loadmodules/forum/forum.moduleFetch a forum term.
menu_tree_check_accessincludes/menu.incCheck access and perform other dynamic operations for each link in the tree.
node_admin_nodesmodules/node/node.admin.incForm builder: Builds the node administration overview.
node_feedmodules/node/node.moduleA generic function for generating RSS feeds from a set of nodes.
node_page_defaultmodules/node/node.moduleMenu callback; Generate a listing of promoted nodes.
poll_blockmodules/poll/poll.moduleImplementation of hook_block().
poll_pagemodules/poll/poll.pages.incMenu callback to provide a simple list of all polls available.
statistics_title_listmodules/statistics/statistics.moduleReturns all time or today top or last viewed node(s).
taxonomy_autocompletemodules/taxonomy/taxonomy.pages.incHelper function for autocompletion
taxonomy_form_altermodules/taxonomy/taxonomy.moduleImplementation of hook_form_alter(). Generate a form for selecting terms to associate with a node. We check for taxonomy_override_selector before loading the full vocabulary, so contrib modules can intercept before hook_form_alter and provide scalable...
taxonomy_get_childrenmodules/taxonomy/taxonomy.moduleFind all children of a term ID.
taxonomy_get_parentsmodules/taxonomy/taxonomy.moduleFind all parents of a given term ID.
taxonomy_get_term_by_namemodules/taxonomy/taxonomy.moduleTry to map a string to an existing term, as for glossary use.
taxonomy_get_treemodules/taxonomy/taxonomy.moduleCreate a hierarchical representation of a vocabulary.
taxonomy_get_vocabulariesmodules/taxonomy/taxonomy.moduleReturn an array of all vocabulary objects.
taxonomy_node_get_termsmodules/taxonomy/taxonomy.moduleFind all terms associated with the given node, ordered by vocabulary and term weight.
taxonomy_node_get_terms_by_vocabularymodules/taxonomy/taxonomy.moduleFind all terms associated with the given node, within one vocabulary.
taxonomy_overview_termsmodules/taxonomy/taxonomy.admin.incForm builder for the taxonomy terms overview.
taxonomy_select_nodesmodules/taxonomy/taxonomy.moduleFinds all nodes that match selected taxonomy conditions.
taxonomy_term_count_nodesmodules/taxonomy/taxonomy.moduleCount the number of published nodes classified by a term.
taxonomy_term_pagemodules/taxonomy/taxonomy.pages.incMenu callback; displays all nodes associated with a term.
template_preprocess_forum_topic_navigationmodules/forum/forum.modulePreprocess variables to format the next/previous forum topic navigation links.
tracker_pagemodules/tracker/tracker.pages.incMenu callback. Prints a listing of active nodes on the site.
translation_node_get_translationsmodules/translation/translation.moduleGet all nodes in a translation set, represented by $tnid.
_blog_post_existsmodules/blog/blog.moduleHelper function to determine if a user has blog posts already.
_forum_newmodules/forum/forum.moduleFinds the first unread node for a given forum.
_forum_topics_unreadmodules/forum/forum.moduleCalculate the number of nodes the user has not yet read and are newer than NODE_NEW_LIMIT.
_node_types_buildmodules/node/node.moduleBuilds and returns the list of available node types.

Functions called by db_rewrite_sql()

Namesort iconLocationDescription
db_distinct_fieldincludes/database.pgsql.incWraps the given table.field entry with a DISTINCT(). The wrapper is added to the SELECT list entry of the given query and the resulting query is returned. This function only applies the wrapper if a DISTINCT doesn't already exist in the query.
db_rewrite_sqlincludes/database.incRewrites node, taxonomy and comment queries. Use it for listing queries. Do not use FROM table1, table2 syntax, use JOIN instead.
_db_rewrite_sqlincludes/database.incHelper function for db_rewrite_sql.
 
 

Drupal is a registered trademark of Dries Buytaert.