#29801 - Fix for broken Newsletter signup form action url.
[com.zyxware.civiwci.git] / wci-helper-functions.php
index 5022cf2fe8605d44a140c7140ef3c7c70ff27962..9c34fca09b87ec0772c3992a7fe5b721e7d524f3 100644 (file)
@@ -27,4 +27,8 @@
     $widget_tpl_path = __DIR__ . '/templates/CRM/Wci/Page';
     
     return $widget_tpl_path;
+  }
+  
+  function getEmailSignupFormUrl() {
+    return 'http://' . $_SERVER['SERVER_NAME'] . str_replace($_SERVER['PHP_SELF'], '', str_replace($_SERVER['DOCUMENT_ROOT'], '', $_SERVER['SCRIPT_FILENAME'])) . '/civicrm/mailing/subscribe';
   }
\ No newline at end of file