Adding on to the answer given by Alex Gill
.module files
.module files are loaded on every load page, whereas.inc files
.inc files are loaded only when they are requested.- By convention .module files should contains only those functions which are implementation of hooks. Following this standard
improves the performance too
improves the performance too. - .inc files can be included by mentioning the path in the hook_menu
hook_menu()
, or buby making an explicit using http://api.drupal.org/api/drupal/includes!module.inc/function/module_load_include/7('inc', 'node', 'node.admin')module_load_include('inc', 'node', 'node.admin');
. - If any of the
.inc files
contain any.inc files contains class objects, then it should be mentioned in the info.info file of the module.