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

subscription to news letter in drupal
IP to country in counter report in drupal
Image and video gallery on drupal website
How to add php files in drupal modules
Drupal - Computed Fields - Taxonomy Term Weight?
Automatically update drupal nodes at submit time
Privatemsg & send email notify on new message drupal6
How to create template file for skinr module in drupal?
Drupal 6 managing Content Profile profiles
strange content type in drupal
How can I figure out the duration of hook_block cache time?
How to start with skinr module in drupal
Why are .tif images not used in webpages (TIF cannot be used in internet browsers)?
Display link to nodes who reference a user in a custom usertype view
what's these lines meaning in hook_menu?
Drupal6 - Develop mobile site

Categories

HOME
google-chrome-extension
ngrx
getelementsbytagname
paw-app
acquia
datastax-java-driver
ios-charts
directx
contact
google-translate
numeral.js
nstableview
gz
vaadin7
workload-scheduler
telephony
saxon
footer
ab-testing
jqwidget
lucene.net
jprofiler
jasonette
cloudhub
mps
graphicsmagick
tapestry
realex-payments-api
one-to-many
buildbot
tooltipster
kendo-datasource
gsoap
microsoft-chart-controls
directx-10
javascriptcore
pdb
ios5
simplexml
bitbucket-pipelines
jquery-bootgrid
gesture
abstract-class
particles.js
android-tabhost
android-mediaprojection
no-www
mime
qwt
fault
outlook-2013
chain-builder
jedis
pubmed
logparser
recursive-datastructures
diagnostics
knockout-components
feeds
crypt
np-complete
r-forge
nested-sets
time-and-attendance
sts-springsourcetoolsuite
clang-static-analyzer
qcustomplot
apachebench
uid
qtableview
retina
sailfish-os
sniffer
proj4js
notify
c++03
python-green
facebook-graph-api-v2.4
pick
gadt
android-nested-fragment
has-many-through
navigationservice
htmlcleaner
undefined-reference
meteor-velocity
openlaszlo
fmod
prettify
aqtime
gridfs
runtime.exec
opcache
interface-orientation
jelly
free-variable
coderush
funscript
eclipse-templates
gnustep
mod-auth
winbugs14
iphone-web-app
site.master
createwindow
asp.net-mvc-areas
web-application-design
vc90
kdbg
swing-app-framework
mediarss
ubuntu-9.04

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App