node_load

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 node_load($param = array(), $revision = NULL, $reset = NULL)
drupal7 node_load($nid, $vid = array(), $reset = FALSE)

Load a node object from the database.

Übergabeparameter

$nid The node ID.

$vid The revision ID.

$reset Whether to reset the node_load_multiple cache.

Rückgabewert

A fully-populated node object.

▾ 49 functions call node_load()

blogapi_blogger_edit_post in modules/blogapi/blogapi.module
Blogging API callback. Modifies the specified blog node.
blogapi_blogger_get_post in modules/blogapi/blogapi.module
Blogging API callback. Returns a specified blog node.
blogapi_mt_get_post_categories in modules/blogapi/blogapi.module
Blogging API callback. Returns a list of the taxonomy terms that are assigned to a particular node.
blogapi_mt_publish_post in modules/blogapi/blogapi.module
Blogging API callback. Publishes the given node.
blogapi_mt_set_post_categories in modules/blogapi/blogapi.module
Blogging API callback. Assigns taxonomy terms to a particular node.
book_admin_edit_submit in modules/book/book.admin.inc
Handle submission of the book administrative page form.
book_export_html in modules/book/book.pages.inc
This function is called by book_export() to generate HTML for export.
book_export_traverse in modules/book/book.module
Traverse the book tree to build printable or exportable output.
book_form_node_delete_confirm_alter in modules/book/book.module
Form altering function for the confirm form for a single node deletion.
book_node_delete in modules/book/book.module
Implementation of hook_node_delete().
comment_form in modules/comment/comment.module
Generate the basic commenting form, for appending to a node or display on a separate page.
comment_form_add_preview in modules/comment/comment.module
Form builder; Generate and validate a comment preview form.
comment_form_submit in modules/comment/comment.module
Process comment form submissions; prepare the comment, store it, and set a redirection target.
comment_links in modules/comment/comment.module
Build command links for a comment (e.g.\ edit, reply, delete) with respect to the current user's access permissions.
comment_save in modules/comment/comment.module
Accepts a submission of new or changed comment content.
comment_validate in modules/comment/comment.module
Validate comment data.
hook_search in modules/search/search.api.php
Define a custom search routine.
hook_update_index in modules/search/search.api.php
Update Drupal's full-text index for this module.
MenuTestCase::testMenu in modules/menu/menu.test
Login users, add menus and menu links, and test menu functionality through the admin and user interfaces.
NodeAccessRecordsAlterUnitTest::testGrantAlter in modules/node/node.test
Create a node and test the creation of node access rules.
NodeRevisionsTestCase::setUp in modules/node/node.test
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_delete_confirm_submit in modules/node/node.pages.inc
Execute node deletion
node_help in modules/node/node.module
Implementation of hook_help().
node_search in modules/node/node.module
Implementation of hook_search().
PageViewTestCase::testPageView in modules/node/node.test
Creates a node and then an anonymous and unpermissioned user attempt to edit the node.
poll_block_view in modules/poll/poll.module
Implementation of hook_block_view().
poll_cancel in modules/poll/poll.module
Submit callback for poll_cancel_form
profile_block_view in modules/profile/profile.module
Implementation of hook_block_view().
statistics_node_tracker in modules/statistics/statistics.pages.inc
system_message_action in modules/system/system.module
A configurable Drupal action. Sends a message to the current user's screen.
system_send_email_action in modules/system/system.module
Implementation of a configurable Drupal action. Sends an email.
translation_node_overview in modules/translation/translation.pages.inc
Overview page for a node's translations.
translation_node_prepare in modules/translation/translation.module
Implementation of hook_node_prepare().
translation_path_get_translations in modules/translation/translation.module
Return paths of all translations of a node, based on its Drupal path.
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().
UserCancelTestCase::testUserAnonymize in modules/user/user.test
Delete account and anonymize all content.
UserCancelTestCase::testUserBlockUnpublish in modules/user/user.test
Disable account and unpublish all content.
UserCancelTestCase::testUserCancelInvalid in modules/user/user.test
Attempt invalid account cancellations.
UserCancelTestCase::testUserCancelWithoutPermission in modules/user/user.test
Attempt to cancel account without permission.
UserCancelTestCase::testUserDelete in modules/user/user.test
Delete account and remove all content.
_node_index_node in modules/node/node.module
Index a single node.
_node_mass_update_helper in modules/node/node.admin.inc
Node Mass Update - helper function.
_node_revision_access in modules/node/node.module
_trigger_normalize_comment_context in modules/trigger/trigger.module
When an action is called in a context that does not match its type, the object that the action expects must be retrieved. For example, when an action that works on nodes is called during the comment hook, the node object is not available since the…
_trigger_normalize_user_context in modules/trigger/trigger.module
When an action is called in a context that does not match its type, the object that the action expects must be retrieved. For example, when an action that works on nodes is called during the user hook, the node object is not available since the user…

Code

modules/node/node.module, line 947

<?php
function node_load($nid, $vid = array(), $reset = FALSE) {
  $vid = isset($vid) ? array('vid' => $vid) : NULL;
  $node = node_load_multiple(array($nid), $vid, $reset);

  return $node ? $node[$nid] : FALSE;
}
?>

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