Posted by stewie32 on February 21, 2010 at 9:20pm
I want to write a module to remove a particular taxonomy term from a node. I was wondering if anyone could point me in the right direction as to how to achieve this.
I want to write a module to remove a particular taxonomy term from a node. I was wondering if anyone could point me in the right direction as to how to achieve this.
Comments
You might want to expand on
You might want to expand on your need as there may be a module that already does what you want. Under what conditions do you want to remove the term from a node?
What i am trying to do
What i am trying to do exactly is add or remove audio files from/to a playlist. I want to associate an audio node with a playlist node via taxonomy terms. example an audio node will be tagged with the name of the playlist it is assigned to with the name of the actual playlist. My problem is with my current setup I do not know how to remove an audio node from a playlist, by programmatically removing the name of the playlist or taxonomy term from the audio node.
I tried the audio module but I was not completely satisfied with it's over all functionality so I decided to create my own module. If their is another module I can look into that you can recommend I would greatly appreciate it.
If they are both nodes why
If they are both nodes why not just use a node reference which seems more direct.
Thank you, never thought of
Thank you, never thought of approaching the problem like that. I would still need to know how to add and remove node references programmatically though. If you could lend some assistance here that would be greatly appreciated as this is my first time creating a module/s for Drupal.
Thanks again.