Download & Extend

Exhibit JSON Views style plugin not extensible

Project:Exhibit
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

Because the code for exhibit_get_feeds and exhibit_feed_load check whether the style plugin is exhibit_json, plugins that extend exhibit_json are not available for Exhibit to use.

This is a simple fix, we just need to load the style plugins and create an array of those that extend exhibit_json. This may not work in Drupal 7, since I don't think that you have to declare parents in Views for D7 (I heard something about that in Larry Garfield's Views for Developers). But this will work in D6.

I will post the patch. If no one objects for a while, I will commit the patch as well.

Comments

#1

Here is the patch, it simply finds all styles that extend exhibit_json and uses that array to check whether the style is an Exhibit JSON feed.

AttachmentSize
exhibit_style-plugin-extensions_847492_1.patch 2.42 KB

#2

Status:active» needs review