node.module
Version 1.1165 (checked in on 2009/11/07 at 13:35:20 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
| 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. |
Functions
| Name | Description |
|---|---|
| node_access | Determine whether the current user may perform the given operation on the specified node. |
| node_access_acquire_grants | This function will call module invoke to get a list of grants and then write them to the database. It is called at node save, and should be called by modules whenever something other than a node_save causes the permissions on a node to change. |
| node_access_grants | Fetch an array of permission IDs granted to the given user ID. |
| node_access_needs_rebuild | Flag / unflag the node access grants for rebuilding, or read the current value of the flag. |
| node_access_rebuild | Rebuild the node access database. This is occasionally needed by modules that make system-wide changes to access levels. |
| node_access_view_all_nodes | Determine whether the user has a global viewing grant for all nodes. |
| node_access_write_grants | This function will write a list of grants to the database, deleting any pre-existing grants. If a realm is provided, it will only delete grants from that realm, but it will always delete a grant from the 'all' realm. Modules which utilize... |
| node_action_info | Implement hook_action_info(). |
| node_assign_owner_action | Implement a configurable Drupal action. Assigns ownership of a node to a user. |
| node_assign_owner_action_form | |
| node_assign_owner_action_submit | |
| node_assign_owner_action_validate | |
| node_block_info | Implement hook_block_info(). |
| node_block_view | Implement hook_block_view(). |
| node_build | Generate an array for rendering the given node. |
| node_build_content | Builds a structured array representing the node's content. |
| node_build_multiple | Construct a drupal_render() style array from an array of loaded nodes. |
| node_configure_fields | Manage the field(s) for a node type. |
| node_content_form | Implement hook_form(). |
| node_cron | Implement hook_cron(). |
| node_delete | Delete a node. |
| node_delete_multiple | Delete multiple nodes. |
| node_entity_info | Implement hook_entity_info(). |
| node_feed | A generic function for generating RSS feeds from a set of nodes. |
| node_field_build_modes | Implement hook_field_build_modes(). |
| node_forms | Implement hook_forms(). All node forms share the same form handler. |
| node_form_search_form_alter | Implement hook_form_FORM_ID_alter(). |
| node_help | Implement hook_help(). |
| node_hook | Determine whether a node hook exists. |
| node_init | Implement hook_init(). |
| node_invoke | Invoke a node hook. |
| node_language_negotiation_info | Implement hook_language_negotiation_info(). |
| node_language_provider | Return the language of the current node. |
| node_last_changed | |
| node_last_viewed | Retrieves the timestamp at which the current user last viewed the specified node. |
| node_list_permissions | Helper function to generate standard node permission list for a given type. |
| node_load | Load a node object from the database. |
| node_load_multiple | Load node entities from the database. |
| node_make_sticky_action | Implement a Drupal action. Sets the sticky-at-top-of-list property of a node to 1. |
| node_make_unsticky_action | Implement a Drupal action. Sets the sticky-at-top-of-list property of a node to 0. |
| node_mark | Decide on the type of marker to be displayed for a given node. |
| node_menu | Implement hook_menu(). |
| node_node_access | Implement hook_node_access(). |
| node_page_default | Menu callback; Generate a listing of promoted nodes. |
| node_page_title | Title callback. |
| node_page_view | Menu callback; view a single node. |
| node_permission | Implement hook_permission(). |
| node_permissions_get_configured_types | Returns an array of node types that should be managed by permissions. |
| node_promote_action | Implement a Drupal action. Sets the promote property of a node to 1. |
| node_publish_action | Implement a Drupal action. Sets the status of a node to 1, meaning published. |
| node_query_node_access_alter | Implement hook_query_TAG_alter(). |
| node_ranking | Implement hook_ranking(). |
| node_rdf_mapping | Implements hook_rdf_mapping(). |
| node_requirements | Implement hook_requirements(). |
| node_revision_delete | Delete a node revision. |
| node_revision_list | Return a list of all the existing revision numbers. |
| node_save | Save changes to a node or add a new node. |
| node_save_action | Implement a Drupal action. Saves a node. |
| node_search_access | Implement hook_search_access(). |
| node_search_admin | Implement hook_search_admin(). |
| node_search_execute | Implement hook_search_execute(). |
| node_search_info | Implement hook_search_info(). |
| node_search_reset | Implement hook_search_reset(). |
| node_search_status | Implement hook_search_status(). |
| node_search_validate | Form API callback for the search form. Registered in node_form_alter(). |
| node_show | Generate an array which displays a node detail page. |
| node_submit | Prepare node for save and allow modules to make changes. |
| node_tag_new | Update the 'last viewed' timestamp of the specified node for current user. |
| node_theme | Implement hook_theme(). |
| node_title_list | Gather a listing of links to nodes. |
| node_types_rebuild | Resets the database cache of node types. |
| 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 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; Load a node type by string. |
| node_type_page_title | Title callback for a node type. |
| node_type_save | Saves a node type to the database. |
| node_type_set_defaults | Set 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 | Implement a Drupal action. Sets the promote property of a node to 0. |
| node_unpublish_action | Implement a Drupal action. Sets the status of a node to 0, meaning unpublished. |
| node_unpublish_by_keyword_action | Implement a configurable Drupal action. Unpublish a node if it contains a certain string. |
| node_unpublish_by_keyword_action_form | |
| node_unpublish_by_keyword_action_submit | |
| node_update_index | Implement hook_update_index(). |
| node_user_cancel | Implement hook_user_cancel(). |
| node_validate | Perform validation checks on the given node. |
| template_preprocess_node | Process variables for node.tpl.php |
| theme_node_list | Format a listing of links to nodes. |
| theme_node_log_message | Theme a log message. |
| theme_node_search_admin | Theme the content ranking part of the search settings admin page. |
| _node_access_rebuild_batch_finished | Post-processing for node_access_rebuild_batch. |
| _node_access_rebuild_batch_operation | Batch operation for node_access_rebuild_batch. |
| _node_add_access | |
| _node_custom_theme | Theme callback for creating and editing nodes. |
| _node_extract_type | Extract the type name. |
| _node_index_node | Index a single node. |
| _node_rankings | Gather the rankings from the the hook_ranking implementations. |
| _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. |
