From: Andrei K. <ak...@ho...> - 2003-08-28 18:23:07
|
Hi Furbo, I think that hooks as they are today, not really useful. I might be wrong, but I have to see a meaningful implementation of them before I would make a judgment. If we implement Content Utility Module, it would be a snap to integrate improved hooks system you are talking about (we will already have that universal content_id to work with). On the other hand, IMHO, the biggest problem with hooks, as they are now, is that you can't pass any arguments to it but item_id (well, you could but there is no standards system, and there is no guarantee the it is not going to fail if some incompatible argument is passed in). It is easier to implement flags in module settings to turn some features (like sanitizer for example) on or off and include if statement to call sanitizer API function within a module where module developer thinks it is needed. But it is just my personal opinion. If someone is willing to work on hooks or integrating something like it from PN in the future, I am all for it! Best Regards, ak |