--- moodle.install	2009-03-13 14:36:13.000000000 -0700
+++ moodle-new.install	2009-03-18 11:10:16.000000000 -0700
@@ -5,7 +5,7 @@
 * Implementation of hook_install().
 */
 function moodle_install() {
-  content_notify('install', 'moodle');
+  if (function_exists('content_notify')) content_notify('install', 'moodle');
   variable_set('moodle_url', '');
   variable_set('moodle_page_intro', '');
 }
@@ -14,7 +14,7 @@ function moodle_install() {
 * Implementation of hook_uninstall().
 */
 function moodle_uninstall() {
-  content_notify('uninstall', 'moodle');
+  if (function_exists('content_notify')) content_notify('uninstall', 'moodle');
   variable_del('moodle_url');
   variable_del('moodle_page_intro');
 }
@@ -23,7 +23,7 @@ function moodle_uninstall() {
 * Implementation of hook_enable().
 */
 function moodle_enable() {
-  content_notify('enable', 'moodle');
+  if (function_exists('content_notify')) content_notify('enable', 'moodle');
   // Try to add external link.  Does nothing if Moodle URL not yet set in admin.
   _moodle_add_menu_link();
 }
@@ -32,7 +32,7 @@ function moodle_enable() {
 * Implementation of hook_disable().
 */
 function moodle_disable() {
-  content_notify('disable', 'moodle');
+  if (function_exists('content_notify')) content_notify('disable', 'moodle');
   // Delete the external link from Navigation menu.
   menu_link_delete(NULL, _moodle_get_url());
 }
