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.
When creating a new object by accident, you have to fill out the entire form to delete it.
1. Create a new object (do not save outline)
2. Remove anything from the "title" field
3. Check "Delete'
4. Press "Save"
This only happens when the object is in a temporary state, so maybe we can add a "Delete" button that bypasses validation.
Comment | File | Size | Author |
---|---|---|---|
#5 | objects_can_t_be-2785695-5.patch | 10.62 KB | djdevin |
|
Comments
Comment #2
djdevin- since Drupal 7.50 we can use PHP callables to clean up some of the object validation/submit code!
- added a delete button, but only when the object is temporary (to bypass validation)
- removed dependency on ctools dependent and used Drupal states API instead
Comment #3
djdevinComment #4
djdevinComment #5
djdevinComment #6
djdevin