Download & Extend

Move the menu callbacks outside the module file

Project:Blog Add-ons
Version:6.x-1.1
Component:Code
Category:task
Priority:normal
Assigned:Chajecki
Status:active

Issue Summary

Drupal 6 modules put the menu callbacks outside the module file, generally in files called <module_name>.admin.inc (administration pages), or <module_name>.pages.inc (normal pages). This permits to reduce the code loaded at runtime when Drupal is loaded, and permits the web site to run faster.

This is made possible by a new attribute, which permits to tell to Drupal from which file the callback function must be loaded (it's 'file').

Comments

#1

Assigned to:Anonymous» Chajecki

Thanks again. I will try to fix it in a new release.