2016-07-23 10 views
1
Hello at the installation I want to change the modules directory on drupal 7 so i want to know if it possible or impossible.i want to change ../modules to ../mods/init and site/all/modules to ../mods/global 

Ich habe versucht, die install.core.inc Zeile require_once DRUPAL_ROOT zu ändern. ‚/ Modules/ aber ich habe diese Nachricht erhalten: Fatal error: Call to undefined function field_attach_load() in F: \ xamp \ htdocs \ cms \ php \ dp7_1 \ enthält \ entity.inc on line 354drupal Modulverzeichnis ändern

Antwort

2

In Drupal 7 hielt es für die beste Methode, Module im Verzeichnis site/*/modules zu behalten.

Und es gilt als sehr schlechte Praxis alle Zeilen in Drupal Kern zu bearbeiten wie install.core.inc

See Drupal "Never Hack Core" Dokumentation https://www.drupal.org/best-practices/do-not-hack-core und deren Hauptgründe:

  • You will make it complicated, difficult, or nearly impossible to apply site updates such as Security and bug fixes.
  • You will make it difficult for those that come after to maintain the site.
  • You could possibly leave your site vulnerable to exploits.

Es ist nicht unmöglich, aber es würde als ein sehr schlechter Hack des Kerns betrachtet werden, eine Menge technische Schulden und Overhead verursachen, die mit jedem Upgrade erfahren werden würden, und andere Module und Funktionalität wie drush nutzlos machen, ohne sie auch zu hacken.