drupal-6


Drupal 6 - execute code after taxonomy term delete


As the title says, how can I execute code after a taxonomy term is deleted. Drupal 7 has a hook_taxonomy_term_delete, but this function is not available for 6. Does anyone know a work around?
The corresponding hook in D6 is just called hook_taxonomy.
It is called thusly: hook_taxonomy($op, $type, $array = NULL) where:
$op is one of 'delete', 'insert', 'update'
$type is one of 'vocabulary', 'term',
and $array is the thing that $op is being done to.
So in your case an example implementation of that hook would go like this:
function example_taxonomy($op, $type, $array = NULL) {
if ('term' == $type && 'delete' == $op) {
// Execute the code here
}
}

Related Links

How can you safely add a dependency to a Drupal module?
Drupal wysiwyg question
How do you separate the template of a blog block in Drupal?
how to know if user is seeing home page or not?
drupal_get_form is not passing along node array
Drupal show / hide fields in view
How do I make the Drupal-Core Forum display only to members, and ask for login details otherwise
Drupal Views limiting content posted by group membership
drupal body class
Drupal does not detect an installed module
Drupal: How can I run a custom function every time a user posts a comment?
arg function not using URL alias
Drupal module write to database using FAPI
Drupal, Views Exposed Filters: List Options Containing Results
Show Content from other websites using RSS in my Drupal Site
Theming views block naming conventions

Categories

HOME
openstack
iot
relayjs
platform-builder
getelementsbytagname
v8
dxl
ojdbc
networkx
podio
virtualization
awesome-wm
windows-10-universal
metatrader4
rascal
handsontable
jplayer
leiningen
fallback
msp430
lombok
django-simple-history
dosgi
ghc
angular-ui
propel
nodatime
tokenize
lcd
autosys
numerical-methods
buildbot
tdd
react-css-modules
virtualdub
strncpy
maquette
facebook-apps
google-cloud-nl
fabric8
junit5
airconsole
oracle-fusion-middleware
copying
grails-3.1
subset-sum
sequential
ios5
revolution-slider
appfabric
git-merge
retina-display
libvpx
code-search-engine
heightmap
gpx
scorm
menuitem
user-accounts
rdfs
brightcove
drupal-6
composite-key
sqlbulkcopy
hittest
redundancy
sonarlint-vs
visual-c++-2008
ableton-live
deadbolt-2
ado.net-entity-data-model
mikroc
login-control
qpid
gridview-sorting
simplewebrtc
blackberry-10
ready-api
whois
ptrace
associative-array
jfugue
ora-00900
endeca-workbench
t4mvc
spidermonkey
wyam
vstest.console.exe
dereference
dd
cctv
codeigniter-routing
wordpress-theme-customize
has-many-through
eol
jquery-layout
hippomocks
resty-gwt
concurrent-collections
message-driven-bean
stxxl
coverflow
quartz-graphics
file-locking
django-nonrel
drools-planner
jquery-knob
quickdialog
venn-diagram
regsvr32
chrono
nsobject
mod-auth
xdomainrequest
xfbml
telerik-scheduler
thunderbird-lightning
zend-tool

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App