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.
I am writing a custom module that is using community_tag as a base and then adds additional data to a custom table when a term is submitted or deleted with the community_tag ajax UI . I have my module working with jQuery and ajax requests, is there any way around using jQuery and ajax? Could I listen to a submit call in hook_form_alter to submit my additional information? Thanks for providing such a great module.
Comments
Comment #1
nsuit CreditAttribution: nsuit commentedIf my first post was confusing : I was just wondering how I can add some extra actions when a Community_tag tag is deleted.
I figured out how to detect when a tag to be deleted is clicked on. I was hoping to be able to add to Drupal.behaviors.communityTags, but that didn't work out.
So here is the JS that I wrote up. I hope this will help someone else: