Index: send.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/send/send.install,v
retrieving revision 1.14
diff -u -p -r1.14 send.install
--- send.install	31 Oct 2009 01:30:57 -0000	1.14
+++ send.install	3 Nov 2009 02:58:14 -0000
@@ -246,6 +246,11 @@ function send_uninstall() {
 function _send_install_set_default_template() {
   $ret = array();
   if (!$res = db_result(db_query("SELECT stid FROM {send_template} LIMIT 1"))) {
+    // We need the module APIs to exist, if they don't manually load the main
+    // module file so we can continue.
+    if (!function_exists('send_value')) {
+      module_load_include('module', 'send');
+    }
     $template = (object) array(
       'name' => t('Default template'),
       'status' => 1,
