Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/droath/field-widget-storage-api
Field Widget Storage API for Drupal
https://github.com/droath/field-widget-storage-api
Last synced: 7 days ago
JSON representation
Field Widget Storage API for Drupal
- Host: GitHub
- URL: https://github.com/droath/field-widget-storage-api
- Owner: droath
- Created: 2014-05-02T15:54:28.000Z (over 10 years ago)
- Default Branch: 7.x-1.x
- Last Pushed: 2014-05-02T16:34:20.000Z (over 10 years ago)
- Last Synced: 2023-09-11T19:30:36.654Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 141 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The Field Widget Storage API module is a storage engine that can be used by
any field widget that needs to save extra configurations alongside a field.
Developers are able to leverage the modules API so they don't have to worry
about implementing CRUD functionality for their field widget.### Use Case:
Hypothetically, say you need to collect a class attribute from a user when an
image is uploaded on a given entity. Currently the Image field type doesn't
expose a way to define class attributes. We're going to have to accomplish
this by defining a new field using the Field API, and rebuild the image
uploading capabilities inside that module. Then implement the code for
collecting the class attribute. That seems like a lot of development time just
to allow a user to input a class attribute for an image.