Fetch one result row from the previous query as an object.
Parameters
$result: A database query result resource, as returned from db_query().
Return value
An object representing the next row of the result. The attributes of this object are the table fields selected by the query.
Related topics
- Database abstraction layer
- Allow the use of different database servers using the same code base.
▾ 198 functions call db_fetch_object()
- aggregator_block in modules/
aggregator/ aggregator.module - Implementation of hook_block().
- aggregator_form_category_validate in modules/
aggregator/ aggregator.module - Validate aggregator_form_feed form submissions.
- aggregator_form_feed in modules/
aggregator/ aggregator.module - Generate a form to add/edit feed sources.
- aggregator_form_feed_validate in modules/
aggregator/ aggregator.module - Validate aggregator_form_feed form submissions.
- aggregator_page_categories in modules/
aggregator/ aggregator.module - Menu callback; displays all the categories used by the aggregator.
- aggregator_page_category in modules/
aggregator/ aggregator.module - Menu callback; displays all the items aggregated in a particular category.
- aggregator_page_list in modules/
aggregator/ aggregator.module - aggregator_page_opml in modules/
aggregator/ aggregator.module - Menu callback; generates an OPML representation of all feeds.
- aggregator_page_rss in modules/
aggregator/ aggregator.module - Menu callback; generate an RSS 0.92 feed of aggregator items or categories.
- aggregator_page_source in modules/
aggregator/ aggregator.module - Menu callback; displays all the items captured from a particular feed.
- aggregator_page_sources in modules/
aggregator/ aggregator.module - Menu callback; displays all the feeds used by the aggregator.
- aggregator_parse_feed in modules/
aggregator/ aggregator.module - aggregator_remove in modules/
aggregator/ aggregator.module - aggregator_save_feed in modules/
aggregator/ aggregator.module - Add/edit/delete an aggregator feed.
- aggregator_save_item in modules/
aggregator/ aggregator.module - aggregator_view in modules/
aggregator/ aggregator.module - block_admin_configure in modules/
block/ block.module - Menu callback; displays the block configuration form.
- block_block in modules/
block/ block.module - Implementation of hook_block().
- block_list in modules/
block/ block.module - Return all blocks in the specified region for the current user.
- block_user in modules/
block/ block.module - Implementation of hook_user().
- blogapi_blogger_get_recent_posts in modules/
blogapi/ blogapi.module - Blogging API callback. Returns the latest few postings in a user's blog. $bodies TRUE <a href="http://movabletype.org/docs/mtmanual_programmatic.html#item_mt%2EgetRecentPostTitles"> returns a bandwidth-friendly list</a>.
- blogapi_mt_validate_terms in modules/
blogapi/ blogapi.module - Blogging API helper - find allowed taxonomy terms for a node type.
- blog_form in modules/
blog/ blog.module - Implementation of hook_form().
- blog_page_last in modules/
blog/ blog.module - Displays a Drupal page containing recent blog entries of all users.
- blog_page_user in modules/
blog/ blog.module - Displays a Drupal page containing recent blog entries of a given user.
- book_admin_orphan in modules/
book/ book.module - Menu callback; displays a listing of all orphaned book pages.
- book_admin_overview in modules/
book/ book.module - Returns an administrative overview of all books.
- book_block in modules/
book/ book.module - Implementation of hook_block().
- book_export in modules/
book/ book.module - Menu callback; Generates various representation of a book page with all descendants and prints the requested representation to output.
- book_location in modules/
book/ book.module - Given 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_down in modules/
book/ book.module - Given 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_next in modules/
book/ book.module - Fetches the node object of the next page of the book.
- book_prev in modules/
book/ book.module - Fetches the node object of the previous page of the book.
- book_recurse in modules/
book/ book.module - Traverses 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_render in modules/
book/ book.module - Menu callback; prints a listing of all books.
- book_toc in modules/
book/ book.module - Returns an array of titles and nid entries of book pages in table of contents order.
- book_tree in modules/
book/ book.module - Returns an HTML nested list (wrapped in a menu-class div) representing the book nodes as a tree.
- cache_get in includes/
cache.inc - Return data from the persistent cache.
- comment_admin_overview in modules/
comment/ comment.module - comment_delete in modules/
comment/ comment.module - Menu callback; delete a comment.
- comment_edit in modules/
comment/ comment.module - comment_form_add_preview in modules/
comment/ comment.module - comment_get_recent in modules/
comment/ comment.module - Find 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_nodeapi in modules/
comment/ comment.module - Implementation of hook_nodeapi().
- comment_render in modules/
comment/ comment.module - Renders comment(s).
- comment_reply in modules/
comment/ comment.module - This function is responsible for generating a comment reply form. There are several cases that have to be handled, including:
- contact_admin_categories in modules/
contact/ contact.module - Categories/list tab.
- contact_admin_delete in modules/
contact/ contact.module - Category delete page.
- contact_mail_page in modules/
contact/ contact.module - contact_mail_page_submit in modules/
contact/ contact.module - Process the site-wide contact page form submission.
- do_search in modules/
search/ search.module - Do a query on the full-text search index for a word or words.
- drupal_client_page in modules/
drupal/ drupal.module - Formats a list of all clients.
- drupal_client_ping in modules/
drupal/ drupal.module - Callback function from drupal_xmlrpc() called when another site pings this one.
- drupal_cron in modules/
drupal/ drupal.module - Implementation of hook_cron(); handles pings to and from the site.
- drupal_get_installed_schema_version in includes/
install.inc - Returns the currently installed schema version for a module.
- drupal_notify in modules/
drupal/ drupal.module - Sends a ping to the Drupal directory server.
- fileupload_load in developer/
examples/ fileupload.module - Implementation of hook_load().
- filter_admin_delete in modules/
filter/ filter.module - Menu callback; confirm deletion of a format.
- filter_admin_format_form_validate in modules/
filter/ filter.module - Validate filter format form submissions.
- filter_formats in modules/
filter/ filter.module - Retrieve a list of input formats.
- filter_list_format in modules/
filter/ filter.module - Retrieve a list of filters for a certain format.
- forum_get_forums in modules/
forum/ forum.module - Returns a list of all forums for a given taxonomy id
- forum_get_topics in modules/
forum/ forum.module - forum_load in modules/
forum/ forum.module - Implementation of hook_load().
- forum_taxonomy in modules/
forum/ forum.module - Implementation of hook_taxonomy().
- hook_load in developer/
hooks/ node.php - Load node-type-specific information.
- hook_update_index in developer/
hooks/ core.php - Update Drupal's full-text index for this module.
- list_themes in includes/
theme.inc - Provides a list of currently available themes.
- list_theme_engines in includes/
theme.inc - Provides a list of currently available theme engines
- locale in modules/
locale/ locale.module - Provides interface translation services.
- locale_admin_string_delete_page in modules/
locale/ locale.module - String deletion confirmation page.
- locale_refresh_cache in modules/
locale/ locale.module - Refreshes database stored cache of translations.
- locale_supported_languages in modules/
locale/ locale.module - Returns list of languages supported on this site.
- menu_item_delete_form in modules/
menu/ menu.module - Menu callback; delete a single custom item.
- module_enable in includes/
module.inc - Enable a given list of modules.
- module_list in includes/
module.inc - Collect a list of all loaded modules. During the bootstrap, return only vital modules. See bootstrap.inc
- nodeapi_example_nodeapi in developer/
examples/ nodeapi_example.module - Implementation of hook_nodeapi().
- node_access_example_nodeapi in developer/
examples/ node_access_example.module - Implementation of hook_nodeapi().
- 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.module - node_example_load in developer/
examples/ node_example.module - Implementation of hook_load().
- node_feed in modules/
node/ node.module - A generic function for generating RSS feeds from a set of nodes.
- 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_load in modules/
node/ node.module - Load a node object from the database.
- node_page_default in modules/
node/ node.module - Menu callback; Generate a listing of promoted nodes.
- node_revision_list in modules/
node/ node.module - Return a list of all the existing revision numbers.
- node_title_list in modules/
node/ node.module - Gather a listing of links to nodes.
- node_update_index in modules/
node/ node.module - Implementation of hook_update_index().
- path_overview in modules/
path/ path.module - Return a listing of all defined URL aliases.
- poll_cron in modules/
poll/ poll.module - Implementation of hook_cron().
- poll_load in modules/
poll/ poll.module - Implementation of hook_load().
- poll_page in modules/
poll/ poll.module - poll_votes in modules/
poll/ poll.module - Callback for the 'votes' tab for polls you can see other votes on
- profile_admin_overview in modules/
profile/ profile.module - Menu callback; display a listing of all editable profile fields.
- profile_admin_settings_autocomplete in modules/
profile/ profile.module - Retrieve a pipe delimited string of autocomplete suggestions for profile categories
- profile_autocomplete in modules/
profile/ profile.module - Callback to allow autocomplete of profile text fields.
- profile_block in modules/
profile/ profile.module - Implementation of hook_block().
- profile_browse in modules/
profile/ profile.module - Menu callback; display a list of user information.
- profile_categories in modules/
profile/ profile.module - profile_field_delete in modules/
profile/ profile.module - Menu callback; deletes a field from all user profiles.
- profile_form_profile in modules/
profile/ profile.module - profile_load_profile in modules/
profile/ profile.module - profile_save_profile in modules/
profile/ profile.module - profile_validate_profile in modules/
profile/ profile.module - profile_view_profile in modules/
profile/ profile.module - search_index in modules/
search/ search.module - Update the full-text search index for a particular item.
- 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).
- sess_read in includes/
session.inc - statistics_access_log in modules/
statistics/ statistics.module - statistics_node_tracker in modules/
statistics/ statistics.module - statistics_recent_hits in modules/
statistics/ statistics.module - Menu callback; presents the "recent hits" page.
- statistics_top_pages in modules/
statistics/ statistics.module - Menu callback; presents the "top pages" page.
- statistics_top_referrers in modules/
statistics/ statistics.module - Menu callback; presents the "referrer" page.
- statistics_top_visitors in modules/
statistics/ statistics.module - Menu callback; presents the "top visitors" page.
- statistics_user_tracker in modules/
statistics/ statistics.module - system_get_files_database in modules/
system/ system.module - Retrieves the current status of an array of files in the system table.
- system_modules_uninstall in modules/
system/ system.module - 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_sql in modules/
system/ system.module - Menu callback: return information about PHP.
- system_update_1005 in modules/
system/ system.install - system_update_1006 in modules/
system/ system.install - system_update_114 in modules/
system/ system.install - system_update_118 in modules/
system/ system.install - system_update_120 in modules/
system/ system.install - system_update_124 in modules/
system/ system.install - system_update_135 in modules/
system/ system.install - system_update_146 in modules/
system/ system.install - system_update_159 in modules/
system/ system.install - Retrieve data out of the old_revisions table and put into new revision system.
- system_update_164 in modules/
system/ system.install - system_update_172 in modules/
system/ system.install - system_update_175 in modules/
system/ system.install - system_update_177 in modules/
system/ system.install - system_update_178 in modules/
system/ system.install - Update base paths for relative URLs in node and comment content.
- system_update_179 in modules/
system/ system.install - Update base paths for relative URLs in custom blocks, profiles and various variables.
- taxonomy_autocomplete in modules/
taxonomy/ taxonomy.module - Helper function for autocompletion
- taxonomy_del_vocabulary in modules/
taxonomy/ taxonomy.module - Delete a vocabulary.
- taxonomy_form_alter in modules/
taxonomy/ taxonomy.module - Implementation of hook_form_alter(). Generate a form for selecting terms to associate with a node.
- taxonomy_get_children in modules/
taxonomy/ taxonomy.module - Find all children of a term ID.
- taxonomy_get_parents in modules/
taxonomy/ taxonomy.module - Find all parents of a given term ID.
- taxonomy_get_related in modules/
taxonomy/ taxonomy.module - Find all term objects related to a 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 in modules/
taxonomy/ taxonomy.module - Return the term object matching a term ID.
- taxonomy_get_term_by_name in modules/
taxonomy/ taxonomy.module - Try to map a string to an existing term, as for glossary use.
- taxonomy_get_tree in modules/
taxonomy/ taxonomy.module - Create a hierarchical representation of a vocabulary.
- taxonomy_get_vocabularies in modules/
taxonomy/ taxonomy.module - Return an array of all vocabulary objects.
- taxonomy_get_vocabulary in modules/
taxonomy/ taxonomy.module - Return the vocabulary object matching a vocabulary ID.
- taxonomy_node_get_terms in modules/
taxonomy/ taxonomy.module - Find all terms associated with the given node, ordered by vocabulary and term weight.
- taxonomy_node_get_terms_by_vocabulary in modules/
taxonomy/ taxonomy.module - Find all terms associated with the given node, within one vocabulary.
- taxonomy_overview_terms in modules/
taxonomy/ taxonomy.module - Display a tree of all the terms in a vocabulary, with options to edit each one.
- taxonomy_render_nodes in modules/
taxonomy/ taxonomy.module - Accepts the result of a pager_query() call, such as that performed by taxonomy_select_nodes(), and formats each node along with a pager.
- taxonomy_term_count_nodes in modules/
taxonomy/ taxonomy.module - Count the number of published nodes classified by a term.
- taxonomy_term_page in modules/
taxonomy/ taxonomy.module - Menu callback; displays all nodes associated with a term.
- theme_aggregator_page_item in modules/
aggregator/ aggregator.module - Format an individual feed item for display on the aggregator page.
- theme_forum_topic_navigation in modules/
forum/ forum.module - Format the next/previous forum topic navigation links.
- tracker_page in modules/
tracker/ tracker.module - Menu callback. Prints a listing of active nodes on the site.
- update_fix_system_table in ./
update.php - upload_delete in modules/
upload/ upload.module - upload_file_download in modules/
upload/ upload.module - upload_load in modules/
upload/ upload.module - user_access in modules/
user/ user.module - Determine whether the user has a given privilege.
- user_admin_access in modules/
user/ user.module - Menu callback: list all access rules
- user_admin_access_delete_confirm in modules/
user/ user.module - Menu callback: delete an access rule
- user_admin_account in modules/
user/ user.module - user_admin_perm in modules/
user/ user.module - Menu callback: administer permissions.
- user_admin_perm_submit in modules/
user/ user.module - user_admin_role in modules/
user/ user.module - Menu callback: administer roles.
- user_autocomplete in modules/
user/ user.module - Retrieve a pipe delimited string of autocomplete suggestions for existing users
- user_block in modules/
user/ user.module - Implementation of hook_block().
- user_get_authmaps in modules/
user/ user.module - Accepts an user object, $account, or a DA name and returns an associative array of modules and DA names. Called at external login.
- user_is_blocked in modules/
user/ user.module - Checks for usernames blocked by user administration
- user_load in modules/
user/ user.module - Fetch a user object.
- user_roles in modules/
user/ user.module - Retrieve an array of roles matching specified conditions.
- user_search in modules/
user/ user.module - Implementation of hook_search().
- variable_init in includes/
bootstrap.inc - Load the persistent variable table.
- watchdog_event in modules/
watchdog/ watchdog.module - Menu callback; displays details about a log message.
- watchdog_overview in modules/
watchdog/ watchdog.module - Menu callback; displays a listing of log messages.
- watchdog_top in modules/
watchdog/ watchdog.module - Menu callback; generic function to display a page of the most frequent watchdog events of a specified type.
- _block_rehash in modules/
block/ block.module - Update the 'blocks' DB table with the blocks currently exported by modules.
- _book_admin_table_tree in modules/
book/ book.module - _comment_delete_thread in modules/
comment/ comment.module - _comment_load in modules/
comment/ comment.module - Load the entire comment by cid.
- _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.
- _filter_tips in modules/
filter/ filter.module - Helper function for fetching filter tips.
- _forum_user_last_visit in modules/
forum/ forum.module - _locale_add_language in includes/
locale.inc - Helper function to add a language
- _locale_admin_manage_screen in includes/
locale.inc - User interface for the language management screen.
- _locale_export_po in includes/
locale.inc - Exports a Portable Object (Template) file for a language
- _locale_import_one_string in includes/
locale.inc - Imports a string into the database
- _locale_import_po in includes/
locale.inc - Parses Gettext Portable Object file information and inserts into database
- _locale_string_edit in includes/
locale.inc - User interface for string editing.
- _locale_string_edit_submit in includes/
locale.inc - Process string editing form submissions. Saves all translations of one string submitted from a form.
- _locale_string_seek in includes/
locale.inc - Perform a string search and display results in a table
- _menu_build in includes/
menu.inc - Build the menu by querying both modules and the database.
- _node_types_build in modules/
node/ node.module - Builds and returns the list of available node types.
- _taxonomy_term_children in modules/
taxonomy/ taxonomy.module - Helper for taxonomy_term_count_nodes(). Used to find out which terms are children of a parent term.
- _update_178_url_formats in modules/
system/ system.install - _watchdog_get_message_types in modules/
watchdog/ watchdog.module
File
- includes/
database.pgsql.inc, line 158 - Database interface code for PostgreSQL database servers.
Code
<?php
function db_fetch_object($result) {
if ($result) {
return pg_fetch_object($result);
}
}
?>Login or register to post comments