Move the menu callbacks outside the module file

kiamlaluno - July 27, 2008 - 14:26
Project:Blog Add-ons
Version:6.x-1.1
Component:Code
Category:task
Priority:normal
Assigned:Chajecki
Status:active
Description

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').

#1

Chajecki - October 16, 2008 - 03:35
Assigned to:Anonymous» Chajecki

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

 
 

Drupal is a registered trademark of Dries Buytaert.