Thanks Earl, you were right. I just added the 'path' item to the plugin definition array and it works.
ad4m wrote:
Hello!1. I've implemented the views_api hook in my module file
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:
2. I've created the module_name.views.inc file in the module's main
directory
3. In the .inc files I've implemented the views_plugins hook
4. The hook views_plugins returns an array with 'style' index5. Than I've created a file handler_name.inc and implemented a class
containing an aray with all required parameters.6. At the end I created a template file for my custom style plugin
handler_name extending the base views_plugin_style class
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.