Closed (outdated)
Project:
Panels
Version:
7.x-3.3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 May 2013 at 19:27 UTC
Updated:
13 Jul 2026 at 22:26 UTC
Jump to comment: Most recent
Comments
Comment #1
merlinofchaos commentedUnfortunately there isn't. It's not something that can easily be done globally.
It wouldn't be too difficult to write something to do this. You'll need 2 things.
1) A page on the profile form where you list the blocks you want to be enabled/disabled by the user. You'll have to create this list manually, and you'll need a place to store the data. Possibly in a user profile field, maybe. You could use field API and a checkboxes field, potentially.
2) An access plugin that can check the value of those checkboxes. You can then add that to the visibility rules. If you're using field api, then if you use the patch in http://drupal.org/node/1955954 you can probably just use the built in field rule and not have to write any code at all. However, I suspect that patch will not work well with checkboxes, but I don't actually know for sure.
Comment #2
japerryDrupal 7 is no longer supported, closing.