Projet

Général

Profil

Révision 30d5b9c5

Ajouté par Mathieu Schiano Di Schiabica il y a environ 8 ans

Update to 7.42

Voir les différences:

drupal7/modules/node/node.module
2953 2953
 * system. When adding a node listing to your module, be sure to use a dynamic
2954 2954
 * query created by db_select() and add a tag of "node_access". This will allow
2955 2955
 * modules dealing with node access to ensure only nodes to which the user has
2956
 * access are retrieved, through the use of hook_query_TAG_alter().
2956
 * access are retrieved, through the use of hook_query_TAG_alter(). Tagging a
2957
 * query with "node_access" does not check the published/unpublished status of
2958
 * nodes, so the base query is responsible for ensuring that unpublished nodes
2959
 * are not displayed to inappropriate users.
2957 2960
 *
2958 2961
 * Note: Even a single module returning NODE_ACCESS_DENY from hook_node_access()
2959 2962
 * will block access to the node. Therefore, implementers should take care to
......
3685 3688
    // Initiate multistep processing.
3686 3689
    $context['sandbox']['progress'] = 0;
3687 3690
    $context['sandbox']['current_node'] = 0;
3688
    $context['sandbox']['max'] = db_query('SELECT COUNT(DISTINCT nid) FROM {node}')->fetchField();
3691
    $context['sandbox']['max'] = db_query('SELECT COUNT(nid) FROM {node}')->fetchField();
3689 3692
  }
3690 3693

  
3691 3694
  // Process the next 20 nodes.

Formats disponibles : Unified diff