The attached (as both patch and tgz) is a coder's example module for Ctools. It provides example argument, context, content type, access, and relationship plugins, along with a demo panel and advanced help. It also shows how a module can provide a default panel. I hope it can be useful.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | ctools_plugin_example.20090817.tgz | 12.01 KB | rfay |
| #1 | ctools_plugin_example.module.txt | 3.43 KB | merlinofchaos |
| ctools_plugin_example_module.tgz | 14.01 KB | rfay | |
| ctools_plugin_example_module.patch | 68.07 KB | rfay |
Comments
Comment #1
merlinofchaos commentedI've attached the .module file, which I've cleaned up for several style issues. You can use it as a guide for some things that need to be looked at.
Comment #2
Nick Lewis commentedThis is very useful, thx!
Comment #3
izmeez commentedYes this is useful, and the explanation includes useful tips in general
Comment #4
rfayHere is another rev of the module that (I hope) addresses the issues in #1. Thanks.
Comment #5
merlinofchaos commentedOk, committed. Let's run with this and we can patch to refine it as we go.
Comment #6
rfayComment #7
adamo commentedThank you so much!!!
Comment #9
c.hill commentedi don't get it. we created a context plugin. but now we have to make a relationship plugin. why not define the relationship right in the context.
sorry for the dumb question. i'm just typing out loud.