Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.4
Component:
page displays
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2012 at 02:00 UTC
Updated:
6 Sep 2012 at 14:51 UTC
I am working on an access plugin for Organic Groups 7.x-2.x. My plugin seems to work for Block displays but not for Page displays. I would appreciate it of someone could take a look and let me know if there seems to be something wrong with my plugin code or if it might be a Views bug.
I have posted my patch files at http://drupal.org/node/1665296#comment-6380334. If there are any files that I can provide to help figure out the problem, just let me know.
Comments
Comment #1
dawehnerSo the general problem is that you might have understood get_access_callback() a bit wrong.
get_access_callback() is for defining the access callback in the hook_menu, so anything which
is dynamic on runtime like:
simply can't work.
Instead of that your access callback itself should have code like this, because the access callback is runned on
the request.
Comment #2
weekbeforenextThanks so much for your quick response! You are awesome!