I needed OG User Roles access integration with views for a client, and there was no getting around it.
I wrote a views plugin that extends the normal views_plugin_access class. It worked great, and I posted my code to an open OG User Roles issue: http://drupal.org/node/737292#comment-3284452
The OG User Roles author, sun, made a few changes to the code and posted it as a patch to OG User roles: http://drupal.org/node/737292#comment-3284798
The bad news is the patch doesn't work. The problems with it are mentioned here: http://drupal.org/node/737292#comment-3287882
I am creating this support ticket to get help specifically with extending the views_plugin_access_role. The plugin tries to extend views_plugin_access_role, and even defines the parent in hook_views_plugin(), but no luck.
When trying to choose the access role, views AJAX complains: "Class views_plugin_access_role not found."
It works when extending views_plugin_access as I had originally done, except that sun has modified the code to rely on the parent plugin, so we need it to work with views_plugin_access_role.
Anyone have any sort of input as to why I may be running into this issue? Look at the patch file to see the final code after sun's modifications. Thank you all for your help.
Comments
Please Publish Your Analysis
Hi,
Since you wrote a working solution and have an issue with subsequent changes, please publish your detailed analysis of the code (and your issues with it).
Folks will be happy to help you with a fix, however I think you need to help folks by highlighting the specific code segments you have issue with.
I am excited to see you are using Views. Views is one of my favorite modules. I like to use Views.
I look forward to your detailed analysis.
Finally, why aren't you simply using your version of the plugin if it works?