NODE_NOT_PROMOTED

Denotes that the node is not promoted to the front page. File core/modules/node/node.module, line 45 The core module that allows content to be submitted to the site. Code const NODE_NOT_PROMOTED = 0;

node_node_access

node_node_access(NodeInterface $node, $op, $account) Implements hook_node_access(). Related topics Node access rights The node access system determines who can do what to which nodes. File core/modules/node/node.module, line 903 The core module that allows content to be submitted to the site. Code function node_node_access(NodeInterface $node, $op, $account) { $type = $node->bundle(); switch ($op) { case 'create': return AccessResult::allowedIfHasPermission($account, 'crea

node_modules_uninstalled

node_modules_uninstalled($modules) Implements hook_modules_uninstalled(). File core/modules/node/node.module, line 1292 The core module that allows content to be submitted to the site. Code function node_modules_uninstalled($modules) { // Check whether any of the disabled modules implemented hook_node_grants(), // in which case the node access table needs to be rebuilt. foreach ($modules as $module) { // At this point, the module is already disabled, but its code is still // loa

node_modules_installed

node_modules_installed($modules) Implements hook_modules_installed(). File core/modules/node/node.module, line 1281 The core module that allows content to be submitted to the site. Code function node_modules_installed($modules) { // Check if any of the newly enabled modules require the node_access table to // be rebuilt. if (!node_access_needs_rebuild() && array_intersect($modules, \Drupal::moduleHandler()->getImplementations('node_grants'))) { node_access_needs_rebuild(T

node_mass_update

node_mass_update(array $nodes, array $updates, $langcode = NULL, $load = FALSE, $revisions = FALSE) Updates all nodes in the passed-in array with the passed-in field values. IMPORTANT NOTE: This function is intended to work when called from a form submission handler. Calling it outside of the form submission process may not work correctly. Parameters array $nodes: Array of node nids or nodes to update. array $updates: Array of key/value pairs with node field names and the value to update that

node_mark

node_mark($nid, $timestamp) Determines the type of marker to be displayed for a given node. Parameters int $nid: Node ID whose history supplies the "last viewed" timestamp. int $timestamp: Time which is compared against node's "last viewed" timestamp. Return value int One of the MARK constants. File core/modules/node/node.module, line 215 The core module that allows content to be submitted to the site. Code function node_mark($nid, $timestamp) { $cache = &drupal_static(__FUNCTION__,

node_load_multiple

node_load_multiple(array $nids = NULL, $reset = FALSE) Loads node entities from the database. This function should be used whenever you need to load more than one node from the database. Nodes are loaded into memory and will not require database access if loaded again during the same page request. Parameters array $nids: (optional) An array of entity IDs. If omitted, all entities are loaded. bool $reset: (optional) Whether to reset the internal node_load() cache. Defaults to FALSE. Return valu

node_load

node_load($nid = NULL, $reset = FALSE) Loads a node entity from the database. Parameters int $nid: The node ID. bool $reset: (optional) Whether to reset the node_load_multiple() cache. Defaults to FALSE. Return value \Drupal\node\NodeInterface|null A fully-populated node entity, or NULL if the node is not found. Deprecated in Drupal 8.x, will be removed before Drupal 9.0. Use \Drupal\node\Entity\Node::load(). File core/modules/node/node.module, line 443 The core module that allows content

node_is_page

node_is_page(NodeInterface $node) Checks whether the current page is the full page view of the passed-in node. Parameters \Drupal\node\NodeInterface $node: A node entity. Return value int|false The ID of the node if this is a full page view, otherwise FALSE. File core/modules/node/node.module, line 482 The core module that allows content to be submitted to the site. Code function node_is_page(NodeInterface $node) { $route_match = \Drupal::routeMatch(); if ($route_match->getRouteName(

node_help

node_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/node/node.module, line 65 The core module that allows content to be submitted to the site. Code function node_help($route_name, RouteMatchInterface $route_match) { // Remind site administrators about the {node_access} table being flagged // for rebuild. We don't need to issue the message on the confirm form, or // while the rebuild is being processed. if ($route_name != 'node.configure_r