Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8775513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:49:01+00:00 2026-06-13T18:49:01+00:00

Please don’t ask why do i need to or why am I such a

  • 0

Please don’t ask why do i need to or why am I such a pervert.

I have an Organic Groups module on drupal 6.
I need to add node_access hook to this module for some reason.

There is no preset node_access hook in “og.module” file or any file, connected to this module (i’ve checked this).
I’ve tried adding “og_node_access” function with following body: “echo ‘1111111’;return true;” and it doesn’t trigger anywhere (no echoes at all). I’ve tried to add it to og.module file.

P.S.:
Please do not reccomend any access expansions for OG – I have tried plenty of them. All I need is:(pseudocode)

    if ($op=='view'){
      if ($node->type == 'xxxx' || $node->type =='yyyyyyyy') {
          SHOW THIS TYPE OF NODES ONLY TO ADMIN(S) OF THE GROUP (OR SITE) AND THE AUTHOR OF THE NODE, NOBODY ELSE (EVEN IN THE SAME GROUP) IS ALLOWED TO SEE IT OR TOUCH IT.
      } else {
        USE DEFAULT RULES (return IGNORE);
      }
    } 

And I need it to be hardcoded, because Taxonomy access, Content Access and other “Acess” modules don’t work properly (actually they don’t work at all) with OG module.

P.P.S.:
I know, that OG is kind of sht and there are a couple of alternatives, but i just need this to be done in a described way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T18:49:03+00:00Added an answer on June 13, 2026 at 6:49 pm

    So… node_grants hook (I’ve mistyped in my comment it’s “node_grants” not “access_grants”) solved my problem.
    Unfortunately I’ve spent too much time (the whole day) googling and trying to understand a bit complicated grants system of drupal.
    Anyway thank you (all) for your answer(s).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have mutipule web projects (please don't ask me why with multipule namespaces within
I have a very strange problem , please don’t ask me why do I
I have a bunch of php arrays that look like this (please don't ask
I've got such a C++ code (please don't ask why it looks so ugly
I have a flash element (I know, but please don't) with a settings.xml file.
I have a VB6 application (please don't laugh) which does a lot of drawing
I am new to Python so please don't flame me if I ask something
Say I have a normal CSV like # helloworld.csv hello,world,,,please don't replace quoted stuff
Please don't be deterred by the just another IE problem. I have a custom
I have a very amateurish question, so please don't bomb me. I work in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.