The core module that allows content to be submitted to the site.

Modules and scripts may programmatically submit nodes using the usual form API pattern.

File

core/modules/node/node.module

Functions

Namesort descending Description
node_access Access callback: Checks a user's permission for performing a node operation.
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 Toggles or reads the value of a flag for rebuilding the node access grants.
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_action_info Implements hook_action_info().
node_add_body_field Adds the default body field to a node type.
node_admin_paths Implements hook_admin_paths().
node_autoload_info Implements hook_autoload_info().
node_block_configure Implements hook_block_configure().
node_block_info Implements hook_block_info().
node_block_view Implements hook_block_view().
node_build_content Builds a structured array representing the node's content.
node_build_tempstore_id Build tempstore ID.
node_clear_node_tempstore Remove an item from the object cache.
node_config_create_validate Implements hook_config_create_validate().
node_config_delete_validate Implements hook_config_delete_validate().
node_config_info Implements hook_config_info().
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 Deprecated Page callback: 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_search_form_alter Implements hook_form_FORM_ID_alter().
node_form_system_themes_admin_form_alter Implements hook_form_FORM_ID_alter().
node_form_system_themes_admin_form_submit Form submission handler for system_themes_admin_form().
node_get_node_tempstore Get a node from the tempstore.
node_get_recent Finds the most recently changed nodes that are available to the current user.
node_hook Determines whether a node hook exists.
node_invoke Invokes a node hook.
node_is_page Checks whether the current page is the full page view of the passed-in node.
node_language_delete Implements hook_language_delete().
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_layout_context_info Implements hook_layout_context_info().
node_layout_load_by_router_item_alter Implements hook_layout_load_by_router_item_alter().
node_list_permissions Helper function to generate standard node permission list for a given type.
node_load Loads a node entity from the database.
node_load_multiple Loads node entities from the database.
node_mark Decides on the type of marker to be displayed for a given node.
node_menu Implements hook_menu().
node_menu_alter Implements hook_menu().
node_menu_local_tasks_alter Implements hook_menu_local_tasks_alter().
node_modules_disabled Implements hook_modules_disabled().
node_modules_enabled Implements hook_modules_enabled().
node_node_access Implements hook_node_access().
node_object_prepare Prepares a node entity for editing.
node_page_default Menu callback; Generate a listing of promoted nodes.
node_page_title Title callback: Displays the node's title.
node_page_view Page 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_preview_access Access callback: Checks a user's permission for previewing a node.
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_requirements Implements hook_requirements().
node_revision_delete Deletes a node revision.
node_revision_list Returns a list of all the existing revision numbers for the node passed in.
node_save Saves a new or updated node.
node_search_access Implements hook_search_access().
node_search_admin Implements hook_search_admin().
node_search_admin_validate Element validation callback for the search admin form.
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_search_form_alter().
node_set_node_tempstore Store changes to a node or menu item in the temporary store.
node_show Page callback: Generates an array which displays a node detail page.
node_submit Prepares a node for saving by populating the author and creation date.
node_syndicate_content Returns a themed RSS icon which links to a provided feed.
node_tag_new Updates the 'last viewed' timestamp of the specified node for current user.
node_tempstore_load Load a node from the tempstore.
node_theme Implements hook_theme().
node_title_list Gathers a listing of links to nodes.
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_has_content Determine whether a node type has any data.
node_type_load Menu argument loader: Loads a node type by string.
node_type_page_title Title callback: Provides the title for a 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_update_index Implements hook_update_index().
node_user_cancel Implements hook_user_cancel().
node_user_predelete Implements hook_user_predelete().
node_user_update Implements hook_user_update().
node_validate Performs validation checks on the given node.
node_view Generates an array for rendering the given node.
node_views_api Implements hook_views_api().
node_view_multiple Constructs a backdrop_render() style array from an array of loaded nodes.
_node_access_rebuild_batch_finished Performs post-processing for node_access_rebuild().
_node_access_rebuild_batch_operation Performs batch operation for node_access_rebuild().
_node_access_write_grants Writes a list of grants to the database, deleting any previously saved ones.
_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 the hook_ranking implementations.
_node_revision_access Access callback: Checks node revision access.
_node_search_get_types Get the list of node types that are enabled for indexing.
_node_search_query_alter Exclude nodes from the search query in the special situations.
_node_types_build Builds and returns the list of available node types.

Constants

Namesort descending Description
NODE_ACCESS_ALLOW Denotes that access is allowed for a node.
NODE_ACCESS_DENY Denotes that access is denied for a node.
NODE_ACCESS_IGNORE Denotes that access is unaffected for a node.
NODE_NEW_LIMIT Denotes the time cutoff for nodes marked as read.
NODE_NOT_PROMOTED Denotes that the node is not promoted.
NODE_NOT_PUBLISHED Denotes that the node is not published.
NODE_NOT_STICKY Denotes that the node is not sticky at the top of the page.
NODE_PROMOTED Denotes that the node is promoted.
NODE_PUBLISHED Denotes that the node is published.
NODE_SCHEDULED Denotes that the node is not published, but scheduled for later.
NODE_STICKY Denotes that the node is sticky at the top of the page.