aboutsummaryrefslogtreecommitdiff
path: root/muamba.module
diff options
context:
space:
mode:
Diffstat (limited to 'muamba.module')
-rw-r--r--muamba.module9
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();
+}