diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-09-27 00:36:35 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-09-27 00:36:35 -0300 |
commit | 04d95043920a515fa2dd888db2052b9d4d7ad9d7 (patch) | |
tree | befa3508734a8662019d897cffe1259ebd3713ca | |
parent | f411d1283c36725be17d2aafae695efaf415a6b3 (diff) | |
download | muamba-04d95043920a515fa2dd888db2052b9d4d7ad9d7.tar.gz muamba-04d95043920a515fa2dd888db2052b9d4d7ad9d7.tar.bz2 |
Implementing hook_node_delete()
-rw-r--r-- | muamba.module | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/muamba.module b/muamba.module index 751bc0d..9bad3bd 100644 --- a/muamba.module +++ b/muamba.module @@ -184,3 +184,12 @@ function muamba_privatemsg_view_alter(&$content) { $bar = 'TODO: Add here request management bar.'; $content['participants']['#markup'] = $bar . $content['participants']['#markup']; } + +/** + * Implements hook_node_delete() + */ +function muamba_node_delete($node) { + db_delete('muamba') + ->condition('nid', $node->nid) + ->execute(); +} |