dpi / courier

Courier is a Drupal module providing a framework to send messages to entities.
https://drupal.org/project/courier
GNU General Public License v2.0
8 stars 3 forks source link

Add a delete action in TemplateEditForm #22

Open edurenye opened 8 years ago

edurenye commented 8 years ago

What about letting the user to delete a template. I'm not sure if it's so useful for the end user, but for developing and testing it is.

What do you think? In case you like the idea, do you want a confirmation delete form?

dpi commented 8 years ago

I always imagined that creation and deletion of templatecollections would be done programatically. Since the references to TC entity ID's are stored elsewhere, and would be detrimental to the system to let the user delete them.

I'm interested to hear how it fits into your module/site so I can formulate a use case. Courier needs a lot of love before I even consider taking the alpha tag off it.

For now you can TemplateCollection::load($id)->delete();