Combining .info file with .module file

Events happening in the community are now at Drupal community events on www.drupal.org.
beautifulmind's picture

Hello, everyone.
I don't know whether this is relevant to you, and I'm sorry it this doesn't. :)

A question was popped up in my mind that rather creating a separate file for information regarding a module, can't we combine such information in the .module file with this information placed at the top of the .module file?

Comments

When you are using any

techrobo's picture

When you are using any framework you are supposed to follow its standards. Drupal is a framework designed after lot of thought process and several features have been added over a period of time.

You are trying to change very basics of this framework.

Totally agree with you,

beautifulmind's picture

Totally agree with you, techrobo. :)

But there are lots things had gone in complete revamp in history. I respect the Drupal standards and I love to follow them as well. :)
To make something more easy to work with, secure, flexible, sometimes we need to change it completely.
An age ago, we were using Very big valve type transistor and now we are using very very tiny transistors, isn't it changed?

I am curious about the way, if we can do this any how.

:)
beautifulmind

.info files were introduced

magico's picture

.info files were introduced on Drupal 5. Please refer to http://drupal.org/node/101009 for more information.

Main reason: avoid loading modules to read their metadata, which avoid using memory and cpu (Drupal used to crash when there were to many modules available in the modules folder)

Cya

Thanks for replying. I have

beautifulmind's picture

Thanks for replying.
I have gone through the link you posted.

Is there any other way to achieve this?

:)
Beautifulmind

No. The current solution is

magico's picture

No. The current solution is the most efficient and flexible.

this belong on drupal.org forum

ericg's picture

this level of question and discussion really belongs in the primary drupal site and forums, not posted here to a dozen groups.

I guess it would be fine to post in the Multisite group, for them it is on topic. but this has no relevance to new york city or any of the other local groups you posted to

I changed this post's

litwol's picture

I changed this post's association only to the NYC group to avoid making it look like spam.


------------------
Sometimes interesting things appears on http://litwol.com