db_fetch_object

  1. drupal
    1. 4.7 database.mysqli.inc
    2. 4.7 database.pgsql.inc
    3. 4.7 database.mysql.inc
    4. 5 database.mysqli.inc
    5. 5 database.pgsql.inc
    6. 5 database.mysql.inc
    7. 6 database.mysqli.inc
    8. 6
    9. 6 database.mysql.inc
Versions
4.7 – 6 db_fetch_object($result)

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, or FALSE. The attributes of this object are the table fields selected by the query.

Related topics

▾ 188 functions call db_fetch_object()

actions_do in drupal/includes/actions.inc
Perform a given list of actions by executing their callback functions.
actions_get_all_actions in drupal/includes/actions.inc
Retrieves all action instances from the database.
actions_load in drupal/includes/actions.inc
Retrieve a single action from the database.
actions_synchronize in drupal/includes/actions.inc
Synchronize actions that are provided by modules.
aggregator_block in drupal/modules/aggregator/aggregator.module
Implementation of hook_block().
aggregator_categorize_items in drupal/modules/aggregator/aggregator.pages.inc
Form builder; build the page list form.
aggregator_feed_items_load in drupal/modules/aggregator/aggregator.pages.inc
Load feed items by passing a SQL query.
aggregator_form_category_validate in drupal/modules/aggregator/aggregator.admin.inc
Validate aggregator_form_feed form submissions.
aggregator_form_feed in drupal/modules/aggregator/aggregator.admin.inc
Form builder; Generate a form to add/edit feed sources.
aggregator_form_feed_validate in drupal/modules/aggregator/aggregator.admin.inc
Validate aggregator_form_feed form submissions.
aggregator_page_categories in drupal/modules/aggregator/aggregator.pages.inc
Menu callback; displays all the categories used by the aggregator.
aggregator_page_opml in drupal/modules/aggregator/aggregator.pages.inc
Menu callback; generates an OPML representation of all feeds.
aggregator_page_rss in drupal/modules/aggregator/aggregator.pages.inc
Menu callback; generate an RSS 0.92 feed of aggregator items or categories.
aggregator_page_sources in drupal/modules/aggregator/aggregator.pages.inc
Menu callback; displays all the feeds used by the aggregator.
aggregator_parse_feed in drupal/modules/aggregator/aggregator.module
Parse a feed and store its items.
aggregator_remove in drupal/modules/aggregator/aggregator.module
Removes all items from a feed.
aggregator_save_feed in drupal/modules/aggregator/aggregator.module
Add/edit/delete an aggregator feed.
aggregator_save_item in drupal/modules/aggregator/aggregator.module
Add/edit/delete an aggregator item.
aggregator_view in drupal/modules/aggregator/aggregator.admin.inc
Displays the aggregator administration page.
block_admin_configure in drupal/modules/block/block.admin.inc
Menu callback; displays the block configuration form.
block_block in drupal/modules/block/block.module
Implementation of hook_block().
block_list in drupal/modules/block/block.module
Return all blocks in the specified region for the current user.
block_user in drupal/modules/block/block.module
Implementation of hook_user().
blogapi_blogger_get_recent_posts in drupal/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 drupal/modules/blogapi/blogapi.module
Blogging API helper - find allowed taxonomy terms for a node type.
blog_feed_last in drupal/modules/blog/blog.pages.inc
Menu callback; displays an RSS feed containing recent blog entries of all users.
blog_feed_user in drupal/modules/blog/blog.pages.inc
Menu callback; displays an RSS feed containing recent blog entries of a given user.
blog_form in drupal/modules/blog/blog.module
Implementation of hook_form().
blog_page_last in drupal/modules/blog/blog.pages.inc
Menu callback; displays a Drupal page containing recent blog entries of all users.
blog_page_user in drupal/modules/blog/blog.pages.inc
Menu callback; displays a Drupal page containing recent blog entries of a given user.
book_update_6000 in drupal/modules/book/book.install
Drupal 5.x to 6.x update.
cache_get in drupal/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.
comment_admin_overview in drupal/modules/comment/comment.admin.inc
Form builder; Builds the comment overview form for the admin.
comment_delete in drupal/modules/comment/comment.admin.inc
Menu callback; delete a comment.
comment_edit in drupal/modules/comment/comment.pages.inc
Form builder; generate a comment editing form.
comment_form_add_preview in drupal/modules/comment/comment.module
Form builder; Generate and validate a comment preview form.
comment_get_recent in drupal/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 drupal/modules/comment/comment.module
Implementation of hook_nodeapi().
comment_render in drupal/modules/comment/comment.module
Renders comment(s).
comment_reply in drupal/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:
contact_admin_categories in drupal/modules/contact/contact.admin.inc
Categories/list tab.
contact_mail_page in drupal/modules/contact/contact.pages.inc
dblog_event in drupal/modules/dblog/dblog.admin.inc
Menu callback; displays details about a log message.
dblog_overview in drupal/modules/dblog/dblog.admin.inc
Menu callback; displays a listing of log messages.
dblog_top in drupal/modules/dblog/dblog.admin.inc
Menu callback; generic function to display a page of the most frequent dblog events of a specified type.
db_column_exists in drupal/includes/database.mysql.inc
Check if a column exists in the given table.
db_column_exists in drupal/includes/database.mysqli.inc
Check if a column exists in the given table.
db_table_exists in drupal/includes/database.mysqli.inc
Check if a table exists.
db_table_exists in drupal/includes/database.mysql.inc
Check if a table exists.
do_search in drupal/modules/search/search.module
Do a query on the full-text search index for a word or words.
drupal_get_installed_schema_version in drupal/includes/install.inc
Returns the currently installed schema version for a module.
filter_admin_delete in drupal/modules/filter/filter.admin.inc
Menu callback; confirm deletion of a format.
filter_admin_format_form_validate in drupal/modules/filter/filter.admin.inc
Validate filter format form submissions.
filter_formats in drupal/modules/filter/filter.module
Retrieve a list of input formats.
filter_list_format in drupal/modules/filter/filter.module
Retrieve a list of filters for a certain format.
forum_get_forums in drupal/modules/forum/forum.module
Returns a list of all forums for a given taxonomy id
forum_get_topics in drupal/modules/forum/forum.module
forum_load in drupal/modules/forum/forum.module
Implementation of hook_load().
forum_taxonomy in drupal/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.
hook_update_N in developer/hooks/install.php
Perform a single update.
language_list in drupal/includes/bootstrap.inc
Get a list of languages set up indexed by the specified key
list_themes in drupal/includes/theme.inc
Provides a list of currently available themes.
locale in drupal/modules/locale/locale.module
Provides interface translation services.
locale_batch_by_component in drupal/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_batch_by_language in drupal/includes/locale.inc
Prepare a batch to import translations for all enabled modules in a given language.
locale_languages_edit_form in drupal/includes/locale.inc
Editing screen for a particular language.
locale_languages_edit_form_validate in drupal/includes/locale.inc
Validate the language editing form. Reused for custom language addition too.
locale_translate_delete_page in drupal/includes/locale.inc
String deletion confirmation page.
locale_translate_edit_form in drupal/includes/locale.inc
User interface for string editing.
locale_translate_overview_screen in drupal/includes/locale.inc
Overview screen for translations.
locale_uninstall in drupal/modules/locale/locale.install
Implementation of hook_uninstall().
locale_update_6000 in drupal/modules/locale/locale.install
{locales_meta} table became {languages}.
module_enable in drupal/includes/module.inc
Enable a given list of modules.
module_list in drupal/includes/module.inc
Collect a list of all loaded modules. During the bootstrap, return only vital modules. See bootstrap.inc
node_access_rebuild in drupal/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 drupal/modules/node/node.admin.inc
Form builder: Builds the node administration overview.
node_assign_owner_action_form in drupal/modules/node/node.module
node_example_load in examples/node_example/node_example.module
Implementation of hook_load().
node_feed in drupal/modules/node/node.module
A generic function for generating RSS feeds from a set of nodes.
node_last_changed in drupal/modules/node/node.module
node_last_viewed in drupal/modules/node/node.module
Retrieves the timestamp at which the current user last viewed the specified node.
node_load in drupal/modules/node/node.module
Load a node object from the database.
node_page_default in drupal/modules/node/node.module
Menu callback; Generate a listing of promoted nodes.
node_revision_list in drupal/modules/node/node.module
Return a list of all the existing revision numbers.
node_title_list in drupal/modules/node/node.module
Gather a listing of links to nodes.
node_update_index in drupal/modules/node/node.module
Implementation of hook_update_index().
openid_user_identities in drupal/modules/openid/openid.pages.inc
Menu callback; Manage OpenID identities for the specified user.
openid_verify_assertion in drupal/modules/openid/openid.module
Attempt to verify the response received from the OpenID Provider.
path_admin_overview in drupal/modules/path/path.admin.inc
Return a listing of all defined URL aliases. When filter key passed, perform a standard search on the given key, and return the list of matching URL aliases.
poll_cron in drupal/modules/poll/poll.module
Implementation of hook_cron().
poll_load in drupal/modules/poll/poll.module
Implementation of hook_load().
poll_page in drupal/modules/poll/poll.pages.inc
Menu callback to provide a simple list of all polls available.
poll_votes in drupal/modules/poll/poll.pages.inc
Callback for the 'votes' tab for polls you can see other votes on
profile_admin_overview in drupal/modules/profile/profile.admin.inc
Form builder to display a listing of all editable profile fields.
profile_admin_settings_autocomplete in drupal/modules/profile/profile.admin.inc
Retrieve a pipe delimited string of autocomplete suggestions for profile categories
profile_autocomplete in drupal/modules/profile/profile.pages.inc
Callback to allow autocomplete of profile text fields.
profile_block in drupal/modules/profile/profile.module
Implementation of hook_block().
profile_browse in drupal/modules/profile/profile.pages.inc
Menu callback; display a list of user information.
profile_categories in drupal/modules/profile/profile.module
profile_field_delete in drupal/modules/profile/profile.admin.inc
Menu callback; deletes a field from all user profiles.
profile_form_profile in drupal/modules/profile/profile.module
profile_load_profile in drupal/modules/profile/profile.module
profile_save_profile in drupal/modules/profile/profile.module
profile_validate_profile in drupal/modules/profile/profile.module
profile_view_profile in drupal/modules/profile/profile.module
search_index in drupal/modules/search/search.module
Update the full-text search index for a particular item.
search_nodeapi in drupal/modules/search/search.module
Implementation of hook_nodeapi().
search_update_totals in drupal/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 drupal/includes/session.inc
statistics_access_log in drupal/modules/statistics/statistics.admin.inc
Menu callback; Displays recent page accesses.
statistics_node_tracker in drupal/modules/statistics/statistics.pages.inc
statistics_recent_hits in drupal/modules/statistics/statistics.admin.inc
Menu callback; presents the "recent hits" page.
statistics_top_pages in drupal/modules/statistics/statistics.admin.inc
Menu callback; presents the "top pages" page.
statistics_top_referrers in drupal/modules/statistics/statistics.admin.inc
Menu callback; presents the "referrer" page.
statistics_top_visitors in drupal/modules/statistics/statistics.admin.inc
Menu callback; presents the "top visitors" page.
statistics_user_tracker in drupal/modules/statistics/statistics.pages.inc
system_actions_configure in drupal/modules/system/system.module
Menu callback. Create the form for configuration of a single action.
system_actions_manage in drupal/modules/system/system.module
Menu callback. Display an overview of available and configured actions.
system_cron in drupal/modules/system/system.module
Implementation of hook_cron().
system_get_files_database in drupal/modules/system/system.module
Retrieves the current status of an array of files in the system table.
system_modules_uninstall in drupal/modules/system/system.admin.inc
Builds a form of currently disabled modules.
system_sql in drupal/modules/system/system.admin.inc
Menu callback: return information about the database.
system_update_6018 in drupal/modules/system/system.install
Add HTML corrector to HTML formats or replace the old module if it was in use.
system_update_6034 in drupal/modules/system/system.install
Rename permission "administer access control" to "administer permissions".
system_update_6039 in drupal/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_6045 in drupal/modules/system/system.install
Update blog, book and locale module permissions.
taxonomy_autocomplete in drupal/modules/taxonomy/taxonomy.pages.inc
Helper function for autocompletion
taxonomy_del_vocabulary in drupal/modules/taxonomy/taxonomy.module
Delete a vocabulary.
taxonomy_form_alter in drupal/modules/taxonomy/taxonomy.module
Implementation 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_children in drupal/modules/taxonomy/taxonomy.module
Find all children of a term ID.
taxonomy_get_parents in drupal/modules/taxonomy/taxonomy.module
Find all parents of a given term ID.
taxonomy_get_related in drupal/modules/taxonomy/taxonomy.module
Find all term objects related to a given term ID.
taxonomy_get_synonym_root in drupal/modules/taxonomy/taxonomy.module
Return the term object that has the given string as a synonym.
taxonomy_get_term in drupal/modules/taxonomy/taxonomy.module
Return the term object matching a term ID.
taxonomy_get_term_by_name in drupal/modules/taxonomy/taxonomy.module
Try to map a string to an existing term, as for glossary use.
taxonomy_get_tree in drupal/modules/taxonomy/taxonomy.module
Create a hierarchical representation of a vocabulary.
taxonomy_get_vocabularies in drupal/modules/taxonomy/taxonomy.module
Return an array of all vocabulary objects.
taxonomy_node_get_terms in drupal/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 drupal/modules/taxonomy/taxonomy.module
Find all terms associated with the given node, within one vocabulary.
taxonomy_overview_terms in drupal/modules/taxonomy/taxonomy.admin.inc
Form builder for the taxonomy terms overview.
taxonomy_render_nodes in drupal/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 drupal/modules/taxonomy/taxonomy.module
Count the number of published nodes classified by a term.
taxonomy_term_page in drupal/modules/taxonomy/taxonomy.pages.inc
Menu callback; displays all nodes associated with a term.
taxonomy_vocabulary_load in drupal/modules/taxonomy/taxonomy.module
Return the vocabulary object matching a vocabulary ID.
template_preprocess_forum_topic_navigation in drupal/modules/forum/forum.module
Preprocess variables to format the next/previous forum topic navigation links.
token_entity_load in examples/token_example/token_example.module
tracker_page in drupal/modules/tracker/tracker.pages.inc
Menu callback. Prints a listing of active nodes on the site.
translation_node_get_translations in drupal/modules/translation/translation.module
Get all nodes in a translation set, represented by $tnid.
update_fix_compatibility in drupal/update.php
Disable anything in the {system} table that is not compatible with the current version of Drupal core.
upload_delete in drupal/modules/upload/upload.module
upload_file_download in drupal/modules/upload/upload.module
Implementation of hook_file_download().
upload_load in drupal/modules/upload/upload.module
user_access in drupal/modules/user/user.module
Determine whether the user has a given privilege.
user_admin_access in drupal/modules/user/user.admin.inc
Menu callback: list all access rules
user_admin_access_delete_confirm in drupal/modules/user/user.admin.inc
Menu callback: delete an access rule
user_admin_account in drupal/modules/user/user.admin.inc
Form builder; User administration page.
user_admin_perm in drupal/modules/user/user.admin.inc
Menu callback: administer permissions.
user_admin_perm_submit in drupal/modules/user/user.admin.inc
user_admin_role in drupal/modules/user/user.admin.inc
Menu callback: administer roles.
user_autocomplete in drupal/modules/user/user.pages.inc
Menu callback; Retrieve a JSON object containing autocomplete suggestions for existing users.
user_block in drupal/modules/user/user.module
Implementation of hook_block().
user_get_authmaps in drupal/modules/user/user.module
Discover which external authentication module(s) authenticated a username.
user_is_blocked in drupal/modules/user/user.module
Checks for usernames blocked by user administration.
user_load in drupal/modules/user/user.module
Fetch a user object.
user_roles in drupal/modules/user/user.module
Retrieve an array of roles matching specified conditions.
user_search in drupal/modules/user/user.module
Implementation of hook_search().
variable_init in drupal/includes/bootstrap.inc
Load the persistent variable table.
_comment_delete_thread in drupal/modules/comment/comment.admin.inc
Perform the actual deletion of a comment and all its replies.
_comment_load in drupal/modules/comment/comment.module
Load the entire comment by cid.
_comment_update_node_statistics in drupal/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 drupal/modules/dblog/dblog.module
_filter_tips in drupal/modules/filter/filter.module
Helper function for fetching filter tips.
_forum_user_last_visit in drupal/modules/forum/forum.module
_locale_export_get_strings in drupal/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_po in drupal/includes/locale.inc
Parses Gettext Portable Object file information and inserts into database
_locale_parse_js_file in drupal/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 drupal/includes/locale.inc
(Re-)Creates the JavaScript translation file for a language.
_locale_translate_seek in drupal/includes/locale.inc
Perform a string search and display results in a table
_node_types_build in drupal/modules/node/node.module
Builds and returns the list of available node types.
_taxonomy_term_children in drupal/modules/taxonomy/taxonomy.module
Helper for taxonomy_term_count_nodes(). Used to find out which terms are children of a parent term.
_token_example_get_comment in examples/token_example/token_example.module
Build a list of available comments.
_token_example_get_node in examples/token_example/token_example.module
Build a list of available content.
_token_example_get_user in examples/token_example/token_example.module
Build a list of availalbe user accounts.
_trigger_get_hook_actions in drupal/modules/trigger/trigger.admin.inc
Get the actions that have already been defined for this type-hook-op combination.
_trigger_get_hook_aids in drupal/modules/trigger/trigger.module
Get the aids of actions to be executed for a hook-op combination.
_update_cache_get in drupal/modules/update/update.module
Retrieve data from the private update status cache table.

Code

drupal/includes/database.pgsql.inc, line 174

<?php
function db_fetch_object($result) {
  if ($result) {
    return pg_fetch_object($result);
  }
}
?>