Improve hook_node_grants() docs around effect of published status of nodes.

Created on 5 April 2012, about 13 years ago
Updated 17 March 2023, about 2 years ago

Problem/Motivation

API page: http://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/...

"Note that the system makes no distinction between published and unpublished nodes."

I think that if "the system" here is referring only to the grants node_access table system, then yes, this is true. However, in the normal way of displaying a page, hook_node_access (and hook_node_grants after it) is only called for published nodes. Well, at least according to flowchart on p160 of "Pro Drupal 7 Development / Tomlinson & VanDyk".

Steps to reproduce

Proposed resolution

Remaining tasks

  • The new second paragraph 'the table' is referred to without defining what table is being used.
  • "realms" is kind of confusing here. It should have a definition

Review

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Needs work

Version

10.1

Component
Documentation 

Last updated about 12 hours ago

No maintainer
Created by

🇬🇧United Kingdom artfulrobot

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024