CRM-15903 - Modify CRM_Utils_System_UnitTests to not extend Drupal
[civicrm-core.git] / CRM / Utils / System / Drupal.php
index 896ec65c7d5a77a58b1ec850645b6344c1fcfe27..5b7c1842be4af45c82b5297a47b0eb33b86f1bc5 100644 (file)
@@ -712,21 +712,6 @@ AND    u.status = 1
     }
   }
 
-  /**
-   * Get a list of all installed modules, including enabled and disabled ones
-   *
-   * @return array
-   *   CRM_Core_Module
-   */
-  public function getModules() {
-    $result = array();
-    $q = db_query('SELECT name, status FROM {system} WHERE type = \'module\' AND schema_version <> -1');
-    foreach ($q as $row) {
-      $result[] = new CRM_Core_Module('drupal.' . $row->name, ($row->status == 1) ? TRUE : FALSE);
-    }
-    return $result;
-  }
-
   /**
    * Wrapper for og_membership creation
    *