Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I'm just getting started with ctools plugins. I'm developing a custom module and I want the module to support plugins. These plugins will represent various handlers and services that integrate with my main module. I want to use the ctools plugin system for this. I am modeling some of my work on the way the geocoder module uses plugins to represent various geocoding webservices.
Is it possible for each of my plugins to have a schema in the database to store data in? Does the plugin get a hook_schema or hook_install called? How is this use case generally approached?
thanks,
Cliff
Comments
Comment #1
pontus_nilssonNot sure if this is enough for you but each plugin can have a settings form and the values set in the settings form are later available in the $conf variable.
You can see an example of a plugin and how the settings form is built and used here.
Comment #2
MustangGB CreditAttribution: MustangGB commented