Fix widget preview and embed codes.
[com.zyxware.civiwci.git] / wci-helper-functions.php
index 8dc4b0f7f0b6eded50d0fbc4b135b324c9baebb2..b2c021b6e149f1b08c7d9ae07f6cb88df15fdbdb 100644 (file)
     return $options;
   }
 
-  function getExtensionRootPath() {
-    return 'http://' . $_SERVER['SERVER_NAME'] . str_replace($_SERVER['DOCUMENT_ROOT'], '', __DIR__);
-  }
-
-  function getWciWidgetControllerPath() {
-    $widget_controller_path = getExtensionRootPath() . '/extern/embed.php';
-
-    return $widget_controller_path;
-  }
-
   function getWciWidgetTemplatePath() {
     $widget_tpl_path = __DIR__ . '/templates/CRM/Wci/Page';