summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Bergren2009-02-26 15:19:01 (GMT)
committer Brandon Bergren2009-02-26 15:19:01 (GMT)
commit4dc1ad038e8f9c23814cfb2449703ab0cb5aeeac (patch)
treefde0e373117d5fcd05497ba36b8f06293979f481
parent9430dcf831ff69888c410ed46f73650f716fa4bc (diff)
#383194 by dragonwize: Implement proper install/uninstall/enable/disable cck notification.
-rw-r--r--contrib/location_cck/location_cck.install43
1 files changed, 43 insertions, 0 deletions
diff --git a/contrib/location_cck/location_cck.install b/contrib/location_cck/location_cck.install
new file mode 100644
index 0000000..39ae8e1
--- /dev/null
+++ b/contrib/location_cck/location_cck.install
@@ -0,0 +1,43 @@
+<?php
+// $Id$
+
+/**
+ * @file
+ * Module installation/uninstallation hooks.
+ */
+
+/**
+ * Implementation of hook_install().
+ */
+function location_cck_install() {
+ // Notify content module when this module is installed.
+ drupal_load('module', 'content');
+ content_notify('install', 'location_cck');
+}
+
+/**
+ * Implementation of hook_uninstall().
+ */
+function location_cck_uninstall() {
+ // Notify content module when this module is uninstalled.
+ drupal_load('module', 'content');
+ content_notify('uninstall', 'location_cck');
+}
+
+/**
+ * Implementation of hook_enable().
+ */
+function location_cck_enable() {
+ // Notify content module when this module is enabled.
+ drupal_load('module', 'content');
+ content_notify('enable', 'location_cck');
+}
+
+/**
+ * Implementation of hook_disable().
+ */
+function location_cck_disable() {
+ // Notify content module when this module is disabled.
+ drupal_load('module', 'content');
+ content_notify('disable', 'location_cck');
+}