[development] Views custom style plugin
merlin at logrus.com
Thu Aug 6 14:37:51 UTC 2009
> I'm trying to write my custom plugin for Views 2.0. I've found some
> documentation on that, I followed the instructions and I'm facing a
> strange problem.
> Here is what I've done:
> 1. I've implemented the views_api hook in my module file
> 2. I've created the module_name.views.inc file in the module's main
> 3. In the .inc files I've implemented the views_plugins hook
> 4. The hook views_plugins returns an array with 'style' index
> containing an aray with all required parameters.
> 5. Than I've created a file handler_name.inc and implemented a class
> handler_name extending the base views_plugin_style class
> 6. At the end I created a template file for my custom style plugin
> Everything looks fine, I can my custom style plugin from the views'
> interface. *But everytime I'm selecting my own style plugin and clicking
> update, nothing happens! Style plugin remains unchanged.*
This usually means it wasn't able to load the plugin object. Be sure
everything in your hook_views_plugins is correct and that the 'parent'
line, in particular, was correct.
More information about the development