2016-07-23 3 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 

나는 install.core.inc 라인을 변경하려고했습니다. require_once DRUPAL_ROOT. '/ 모듈/ 그러나 나는이 메시지 얻었다 : 치명적인 오류 (정의되지 않은 함수 field_attach_load에 전화) F의를 : \ xamp \ htdocs를 \ CMS \ PHP \ dp7_1 \ \ entity.inc 라인 포함 354drupal 모듈 디렉토리를 변경하십시오.

답변

2

에서 드루팔 (Drupal 7)은/*/modules 디렉토리에 모듈을 보관하는 것이 가장 좋습니다.

그리고 같은 드루팔 코어의 모든 행을 편집하는 아주 나쁜 관행을 고려

참조 드루팔의를 "결코 해킹 코어"문서 https://www.drupal.org/best-practices/do-not-hack-core 그들의 주된 이유

install.core.inc :

  • 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.

불가능한 것은 아니지만, 코어의 매우 심한 해킹으로 간주되어 모든 업그레이드에 대해 경험할 수있는 기술적 부채와 오버 헤드를 많이 생성하고 해킹없이 다른 모듈과 기능을 쓸모 없게 만듭니다.