node.module

Version 1.1247 (checked in on 2010/03/18 at 06:50:37 by dries)

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

Constants

NameDescription
NODE_ACCESS_ALLOWModules should return this value from hook_node_access() to allow access to a node.
NODE_ACCESS_DENYModules should return this value from hook_node_access() to deny access to a node.
NODE_ACCESS_IGNOREModules should return this value from hook_node_access() to not affect node access.
NODE_NEW_LIMITNodes changed before this time are always marked as read.
NODE_NOT_PROMOTEDNode is not promoted to front page.
NODE_NOT_PUBLISHEDNode is not published.
NODE_NOT_STICKYNode is not sticky at top of the page.
NODE_PROMOTEDNode is promoted to front page.
NODE_PUBLISHEDNode is published.
NODE_STICKYNode is sticky at top of the page.

Functions

NameDescription
node_accessDetermine whether the current user may perform the given operation on the specified node.
node_access_acquire_grantsGets the list of node access grants and writes them to the database.
node_access_grantsFetch an array of permission IDs granted to the given user ID.
node_access_needs_rebuildFlag / unflag the node access grants for rebuilding, or read the current value of the flag.
node_access_rebuildRebuild the node access database. This is occasionally needed by modules that make system-wide changes to access levels.
node_access_view_all_nodesDetermine whether the user has a global viewing grant for all nodes.
node_access_write_grantsWrites a list of grants to the database, deleting any previously saved ones.
node_action_infoImplements hook_action_info().
node_admin_pathsImplements hook_admin_paths().
node_assign_owner_actionAssigns ownership of a node to a user.
node_assign_owner_action_formGenerates the settings form for node_assign_owner_action().
node_assign_owner_action_submitSaves settings form for node_assign_owner_action().
node_assign_owner_action_validateValidates settings form for node_assign_owner_action().
node_block_admin_configure_submitForm submit handler for block configuration form.
node_block_configureImplements hook_block_configure().
node_block_infoImplements hook_block_info().
node_block_saveImplements hook_block_save().
node_block_viewImplements hook_block_view().
node_build_contentBuilds a structured array representing the node's content.
node_configure_fieldsManage the field(s) for a node type.
node_content_formImplements hook_form().
node_cronImplements hook_cron().
node_deleteDelete a node.
node_delete_multipleDelete multiple nodes.
node_entity_infoImplements hook_entity_info().
node_feedA generic function for generating RSS feeds from a set of nodes.
node_field_extra_fieldsImplements hook_field_extra_fields().
node_formsImplements hook_forms(). All node forms share the same form handler.
node_form_block_add_block_form_alterImplements hook_form_FORMID_alter().
node_form_block_admin_configure_alterImplements hook_form_FORMID_alter().
node_form_search_form_alterImplements hook_form_FORM_ID_alter().
node_get_recentFind the most recent nodes that are available to the current user.
node_helpImplements hook_help().
node_hookDetermine whether a node hook exists.
node_initImplements hook_init().
node_invokeInvoke a node hook.
node_is_pageReturns whether the current page is the full page view of the passed in node.
node_last_changed
node_last_viewedRetrieves the timestamp at which the current user last viewed the specified node.
node_list_permissionsHelper function to generate standard node permission list for a given type.
node_loadLoad a node object from the database.
node_load_multipleLoad node entities from the database.
node_make_sticky_actionSets the sticky-at-top-of-list property of a node to 1.
node_make_unsticky_actionSets the sticky-at-top-of-list property of a node to 0.
node_markDecide on the type of marker to be displayed for a given node.
node_menuImplements hook_menu().
node_menu_local_tasks_alterImplements hook_menu_local_tasks_alter().
node_modules_enabledImplements hook_modules_enabled().
node_node_accessImplements hook_node_access().
node_object_preparePrepares a node object for editing.
node_page_defaultMenu callback; Generate a listing of promoted nodes.
node_page_titleTitle callback.
node_page_viewMenu callback; view a single node.
node_permissionImplements hook_permission().
node_permissions_get_configured_typesReturns an array of node types that should be managed by permissions.
node_promote_actionSets the promote property of a node to 1.
node_publish_actionSets the status of a node to 1 (published).
node_query_node_access_alterImplements hook_query_TAG_alter().
node_rankingImplements hook_ranking().
node_rdf_mappingImplements hook_rdf_mapping().
node_requirementsImplements hook_requirements().
node_revision_deleteDelete a node revision.
node_revision_listReturn a list of all the existing revision numbers.
node_saveSave changes to a node or add a new node.
node_save_actionSaves a node.
node_search_accessImplements hook_search_access().
node_search_adminImplements hook_search_admin().
node_search_executeImplements hook_search_execute().
node_search_infoImplements hook_search_info().
node_search_resetImplements hook_search_reset().
node_search_statusImplements hook_search_status().
node_search_validateForm API callback for the search form. Registered in node_form_alter().
node_showGenerate an array which displays a node detail page.
node_submitPrepare node for saving by populating author and creation date.
node_tag_newUpdate the 'last viewed' timestamp of the specified node for current user.
node_themeImplements hook_theme().
node_title_listGather a listing of links to nodes.
node_types_rebuildResets the database cache of node types.
node_type_deleteDeletes a node type from the database.
node_type_get_baseReturns the node type base of the passed node or node type string.
node_type_get_nameReturns the node type name of the passed node or node type string.
node_type_get_namesReturns a list of available node names.
node_type_get_typeReturns the node type of the passed node or node type string.
node_type_get_typesReturns a list of all the available node types.
node_type_loadMenu argument loader; Load a node type by string.
node_type_page_titleTitle callback for a node type.
node_type_saveSaves a node type to the database.
node_type_set_defaultsSet the default values for a node type.
node_type_update_nodesUpdates all nodes of one type to be of another type.
node_unpromote_actionSets the promote property of a node to 0.
node_unpublish_actionSets the status of a node to 0 (unpublished).
node_unpublish_by_keyword_actionUnpublishes a node containing certain keywords.
node_unpublish_by_keyword_action_formGenerates settings form for node_unpublish_by_keyword_action().
node_unpublish_by_keyword_action_submitSaves settings form for node_unpublish_by_keyword_action().
node_update_indexImplements hook_update_index().
node_uriEntity uri callback.
node_user_cancelImplements hook_user_cancel().
node_user_deleteImplements hook_user_delete().
node_validatePerform validation checks on the given node.
node_viewGenerate an array for rendering the given node.
node_view_multipleConstruct a drupal_render() style array from an array of loaded nodes.
template_preprocess_nodeProcess variables for node.tpl.php
theme_node_listFormat a listing of links to nodes.
theme_node_log_messageTheme a log message.
theme_node_recent_blockReturns a formatted list of recent nodes.
theme_node_recent_contentReturns a formatted recent node to be displayed in the recent content block.
theme_node_search_adminTheme the content ranking part of the search settings admin page.
_node_access_rebuild_batch_finishedPost-processing for node_access_rebuild_batch.
_node_access_rebuild_batch_operationBatch operation for node_access_rebuild_batch.
_node_add_access
_node_custom_themeTheme callback for creating and editing nodes.
_node_extract_typeExtract the type name.
_node_index_nodeIndex a single node.
_node_rankingsGather the rankings from the the hook_ranking implementations.
_node_revision_access
_node_save_revisionHelper function to save a revision with the uid of the current user.
_node_types_buildBuilds and returns the list of available node types.