Closed (outdated)
Project:
CCK Formatters
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2008 at 20:18 UTC
Updated:
31 May 2016 at 22:49 UTC
Jump to comment: Most recent
Comments
Comment #1
Crell commentedDepends on the details of what you're doing. If the modules will all live in the same directory you can have a common include file that they all call module_load_include() on, which will automatically keep it from getting called multiple times. Unless it's a lot of code, though, it's probably not worth it. CCK formatters tend to have a lot of boilerplate code that's not worth trying to factor out. C'est la vie.
Comment #2
decipheredCustom Formatters is pretty much based around this issue, it itself is just a shell for the CCK formatter hooks, whereas the formatters code is kept in the database.
Comment #3
Crell commentedUm, what? Keeping code in the database is a generally bad idea. It's slower, harder to debug, and arguably a security risk. And since this module exists, er, why create another one?
Comment #4
deciphered@Crell
Custom Formatters isn't another version of CCK formatters, it is a utility to create custom CCK formatters oppose to a collection of pre-made custom formatters. Therefore the database is the only place you could keep the data of the formatters.
Comment #5
Crell commented