This project is not covered by Drupal’s security advisory policy.

Not to be confused with the Presets module...

IMPORTANT NOTE: This module has been deprecated. The latest version ( DEV ) of MediaFront module 7.x no longer needs this module. For those who are interested in having this functionality, it is highly recommended to use CTools Exportables to achieve this functionality.

The preset module was created to consolidate the development conventions commonly used in modules to provide the ability to manage configuration instances, or commonly referred to as presets. By itself, this module does not do anything, but its simple and intuitive API can be used by other modules to implement the ability for the user to manage preset instances of configurations for that module. A good example of this would be the preset management for the ImageCache, OpenLayers, and MediaFront modules.

The module utilizing this API will receive the following features out of the box.

  • The ability for users to add/edit/delete configuration preset instances.
  • Build in hook system so that other modules can provide their own default presets for your module.
  • An easy to use API to get any preset instance for your module.
  • The ability to import/export presets.
  • Integration with the Features module.

Integration and Usage

Please read through the preset.api.php file included in the download to learn how to implement this into your module.

For those who have a module that implements "presets"

If you have a module that implements presets, you will automatically get maintainer status for this module. Please just send me an email using my Contact Form. My goal here is for all of us to come together and reuse code. It will also allow for us to implement a feature in one spot and then that feature propagate to ALL modules implementing this one.

Built by Alethia Inc.

Project information

Releases