开发者

How to delete drupal's unused core modules correctly?

I want to delete the unused drupal modules like ( blog, Forum, taxonomy ...) but I'm worried if I delete the modules from the modules directory I might cause an error (now or in the future).

Is it safe? and if I deleted the corresp开发者_如何学Conding tables what will happen?

The reason for this is because I want to deliver the site to my client, and teach them how to use the admin page, but I want to make as easy as possible for them.


Deleting Drupal core modules is plain wrong for many reasons, the number one is the newbie intro advice to Drupal.

Don't hack core.

Changing Drupal core files opens up to a world of pain.

What you want is not really deleting the modules anyways. What you want is to remove them from the modules list. Though I personally think it's wrong to do it, as always with Drupal there is a way to do it, without altering Drupal itself. The solution is hook_form_alter(). With it you can just remove the modules fro the modules list form. That would be the way of doing this.


Instead of deleting modules, you can configure an user for your client limited only to those sections of the admin area you want to show.

It's a better and more general solution.


You could theoretically just delete them out of the modules directory without any immediate problems, but it's not recommended. There's no reason to, and you'd have to do it each time you updated Drupal, among other problems.


There is no point to deleting them. You could download a contrib module later, and it might rely on Taxonomy, Forum, Color, Upload.. etc. I would advise to leave them alone.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜