Code should be split among include files

egfrith - January 31, 2009 - 01:59
Project:Image Publishing
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:egfrith
Status:closed
Description

The menu system in drupal 6 allows for the files corresponding to page handlers to be split among different include files, by specifying 'file' in hook_menu. I have used this facility to split the code in image_pub.module into four files:
* image_pub.module - the module file
* image_pub.gr.inc - gallery remote code
* image_pub.xp.inc - XP publisher code
* image_pub.common.inc - code common to both Gallery Remote and XP Publisher.

This is to make the code efficient, by avoiding loading over 1000 lines of code on each page request, and should also make the code a bit clearer.

This has been committed to CVS.

#1

System Message - February 14, 2009 - 02:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.