node.module

node.module

The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.

File

modules/node/node.module

Functions

Name Description
node_access Determines whether the current user may perform the operation on the node.
node_access_acquire_grants Gets the list of node access grants and writes them to the database.
node_access_grants Fetches an array of permission IDs granted to the given user ID.
node_access_needs_rebuild Flags or unflags the node access grants for rebuilding.
node_access_rebuild Rebuilds the node access database.
node_access_view_all_nodes Determines whether the user has a global viewing grant for all nodes.
node_access_write_grants Writes a list of grants to the database, deleting any previously saved ones.
node_action_info Implements hook_action_info().
node_add_body_field Adds default body field to a node type.
node_admin_paths Implements hook_admin_paths().
node_assign_owner_action Assigns ownership of a node to a user.
node_assign_owner_action_form Generates the settings form for node_assign_owner_action().
node_assign_owner_action_submit Saves settings form for node_assign_owner_action().
node_assign_owner_action_validate Validates settings form for node_assign_owner_action().
node_block_configure Implements hook_block_configure().
node_block_info Implements hook_block_info().
node_block_list_alter Implements hook_block_list_alter().
node_block_save Implements hook_block_save().
node_block_view Implements hook_block_view().
node_build_content Builds a structured array representing the node's content.
node_content_form Implements hook_form().
node_cron Implements hook_cron().
node_delete Deletes a node.
node_delete_multiple Deletes multiple nodes.
node_entity_info Implements hook_entity_info().
node_feed Generates and prints an RSS feed.
node_field_display_node_alter Implements hook_field_display_ENTITY_TYPE_alter().
node_field_extra_fields Implements hook_field_extra_fields().
node_file_download_access Implements hook_file_download_access().
node_forms Implements hook_forms().
node_form_block_add_block_form_alter Implements hook_form_FORMID_alter().
node_form_block_admin_configure_alter Implements hook_form_FORMID_alter().
node_form_block_admin_configure_submit Form submission handler for node_form_block_admin_configure_alter().
node_form_block_custom_block_delete_alter Implements hook_form_FORMID_alter().
node_form_block_custom_block_delete_submit Form submission handler for node_form_block_custom_block_delete_alter().
node_form_search_form_alter Implements hook_form_FORM_ID_alter().
node_get_recent Finds the most recently changed nodes that are available to the current user.
node_help Implements hook_help().
node_hook Determines whether a node hook exists.
node_invoke Invokes a node hook.
node_is_page Returns whether the current page is the full page view of the passed-in node.
node_last_changed Finds the last time a node was changed.
node_last_viewed Retrieves the timestamp for the current user's last view of a specified node.
node_list_permissions Helper function to generate standard node permission list for a given type.
node_load Loads a node object from the database.
node_load_multiple Loads node entities from the database.
node_make_sticky_action Sets the sticky-at-top-of-list property of a node to 1.
node_make_unsticky_action Sets the sticky-at-top-of-list property of a node to 0.
node_mark Determines the type of marker to be displayed for a given node.
node_menu Implements hook_menu().
node_menu_local_tasks_alter Implements hook_menu_local_tasks_alter().
node_modules_enabled Implements hook_modules_enabled().
node_modules_uninstalled Implements hook_modules_uninstalled().
node_node_access Implements hook_node_access().
node_object_prepare Prepares a node object for editing.
node_page_default Menu callback: Generates a listing of promoted nodes.
node_page_title Title callback: Returns the title of the node.
node_page_view Menu callback: Displays a single node.
node_permission Implements hook_permission().
node_permissions_get_configured_types Returns an array of node types that should be managed by permissions.
node_promote_action Sets the promote property of a node to 1.
node_publish_action Sets the status of a node to 1 (published).
node_query_entity_field_access_alter Implements hook_query_TAG_alter().
node_query_node_access_alter Implements hook_query_TAG_alter().
node_ranking Implements hook_ranking().
node_rdf_mapping Implements hook_rdf_mapping().
node_requirements Implements hook_requirements().
node_revision_delete Deletes a node revision.
node_revision_list Returns a list of all the existing revision numbers.
node_save Saves changes to a node or adds a new node.
node_save_action Saves a node.
node_search_access Implements hook_search_access().
node_search_admin Implements hook_search_admin().
node_search_execute Implements hook_search_execute().
node_search_info Implements hook_search_info().
node_search_reset Implements hook_search_reset().
node_search_status Implements hook_search_status().
node_search_validate Form validation handler for node_form_alter().
node_show Generates an array which displays a node detail page.
node_submit Prepares node for saving by populating author and creation date.
node_tag_new Updates the 'last viewed' timestamp of the specified node for current user.
node_theme Implements hook_theme().
node_title_list Gathers a listing of links to nodes.
node_types_rebuild Updates the database cache of node types.
node_type_cache_reset Clears the node type cache.
node_type_delete Deletes a node type from the database.
node_type_get_base Returns the node type base of the passed node or node type string.
node_type_get_name Returns the node type name of the passed node or node type string.
node_type_get_names Returns a list of available node type names.
node_type_get_type Returns the node type of the passed node or node type string.
node_type_get_types Returns a list of all the available node types.
node_type_load Menu argument loader: loads a node type by string.
node_type_page_title Title callback: Returns the unsanitized title of the node type edit form.
node_type_save Saves a node type to the database.
node_type_set_defaults Sets the default values for a node type.
node_type_update_nodes Updates all nodes of one type to be of another type.
node_unpromote_action Sets the promote property of a node to 0.
node_unpublish_action Sets the status of a node to 0 (unpublished).
node_unpublish_by_keyword_action Unpublishes a node containing certain keywords.
node_unpublish_by_keyword_action_form Generates settings form for node_unpublish_by_keyword_action().
node_unpublish_by_keyword_action_submit Saves settings form for node_unpublish_by_keyword_action().
node_update_index Implements hook_update_index().
node_uri Implements callback_entity_info_uri().
node_user_cancel Implements hook_user_cancel().
node_user_delete Implements hook_user_delete().
node_validate Implements hook_validate().
node_view Generates an array for rendering the given node.
node_view_multiple Constructs a drupal_render() style array from an array of loaded nodes.
template_preprocess_node Processes variables for node.tpl.php
theme_node_recent_block Returns HTML for a list of recent content.
theme_node_recent_content Returns HTML for a recent node to be displayed in the recent content block.
theme_node_search_admin Returns HTML for the content ranking part of the search settings admin page.
_node_access_rebuild_batch_finished Implements callback_batch_finished().
_node_access_rebuild_batch_operation Implements callback_batch_operation().
_node_add_access Access callback: Checks whether the user has permission to add a node.
_node_extract_type Extracts the type name.
_node_index_node Indexes a single node.
_node_query_node_access_alter Helper for node access functions.
_node_rankings Gathers the rankings from the hook_ranking() implementations.
_node_revision_access Access callback: Checks node revision access.
_node_save_revision Helper function to save a revision with the uid of the current user.
_node_types_build Builds and returns the list of available node types.

Constants

Name Description
NODE_ACCESS_ALLOW Modules should return this value from hook_node_access() to allow access to a node.
NODE_ACCESS_DENY Modules should return this value from hook_node_access() to deny access to a node.
NODE_ACCESS_IGNORE Modules should return this value from hook_node_access() to not affect node access.
NODE_NEW_LIMIT Nodes changed before this time are always marked as read.
NODE_NOT_PROMOTED Node is not promoted to front page.
NODE_NOT_PUBLISHED Node is not published.
NODE_NOT_STICKY Node is not sticky at top of the page.
NODE_PROMOTED Node is promoted to front page.
NODE_PUBLISHED Node is published.
NODE_STICKY Node is sticky at top of the page.

Classes

Name Description
NodeController Controller class for nodes.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!node!node.module/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部