Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Adds helper functions to display entityref parents#630

Merged
aaronschachter merged 3 commits intoDoSomethingArchive:devfrom
aaronschachter:show_references
Feb 10, 2014
Merged

Adds helper functions to display entityref parents#630
aaronschachter merged 3 commits intoDoSomethingArchive:devfrom
aaronschachter:show_references

Conversation

@aaronschachter
Copy link
Contributor

Fixes last item left in #606

  • Adds helper functions which query entityreference fields to see where a given node is referenced.
  • Moves hook_node_access check into dosomething_user to have one place to deny access to view content types that only staff should have view access to (facts, images).
  • Displays three sections on a Fact node (which is an internal view only staff can see):
    • parent nodes which reference the Fact via field_facts (this will include campaigns and fact_page)
    • parent nodes which reference the Fact via field_fact_problem
    • parent nodes which reference the Fact via field_fact_solution
  • Similarly displays parent nodes which reference a given image node on the image node's node_view (which again, only staff can see

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would be a good place to add caching in a later lifetime.

@angaither
Copy link
Contributor

👍

aaronschachter added a commit that referenced this pull request Feb 10, 2014
Adds helper functions to display entityref parents
@aaronschachter aaronschachter merged commit 43ec0f3 into DoSomethingArchive:dev Feb 10, 2014
@aaronschachter aaronschachter deleted the show_references branch February 10, 2014 15:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants