CRM-15450 - Fix D6 to render scripts in correct order
authorColeman Watts <coleman@civicrm.org>
Mon, 13 Oct 2014 18:37:50 +0000 (14:37 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 13 Oct 2014 18:37:50 +0000 (14:37 -0400)
CRM/Utils/System/Drupal6.php

index c18b5331f5f25c8bce1068cf1af9425899e57646..5c40eaa8c4de468fe296acddb393dd28c7a674eb 100644 (file)
@@ -342,19 +342,7 @@ class CRM_Utils_System_Drupal6 extends CRM_Utils_System_DrupalBase {
    * @access public
    */
   public function addScriptUrl($url, $region) {
-    switch ($region) {
-      case 'html-header':
-      case 'page-footer':
-        $scope = substr($region, 5);
-        break;
-      default:
-        return FALSE;
-    }
-    // If the path is within the drupal directory we can add in the normal way
-    if ($this->formatResourceUrl($url)) {
-      drupal_add_js($url, 'module', $scope);
-      return TRUE;
-    }
+    // CRM-15450 - D6 doesn't order internal/external links correctly so we can't use drupal_add_js
     return FALSE;
   }