- Moderated by:
- Support Team
-
- rank:
-
Professional
- registered:
- April 2004
- Status:
- offline
- last visit:
- 21.01.08
- Posts:
- 2723
I have written needle functionality into a custom module as per the docs in the MultiHook module. After moving my needle files to the MultiHook /pnneedleapi/ directory and refreshing the MultiHook->Needles admin, it worked: nice and easy! Thanks for integrating this functionality!
Question: how should these files be distributed?
After seeing the other needle files in the MultiHook directory, I was wondering if they should be submitted to the NOC for inclusion within the MultiHook distro. On the one hand this could lead the MultiHook module to become overburdened with extras that some end-users don't need.
On the other hand, including these files within the (whatever) module distro might lead to confusion for those who don't have the MultiHook module installed.
On the other hand (ok, so that's 3 hands...shoot me!) To offer these as a separate download alongside the given module seems stringy and not very "incorporated".
Thanks for any comments on this,
- John
--
Photography | PHP | Other -
- rank:
-
Professional
- registered:
- December 2003
- Status:
- offline
- last visit:
- 21.11.08
- Posts:
- 2975
I guess, if it going to be a popular module, than inclusion to MultiHook may be the way to go..
Including them with the your distro would be the way to go, if it is a less popular module. Yes, cross module 'pollination' can lead to some confusion, especially with weak install docs.
The third option, of separate download does seem 'stringy'. I would suggest avoiding this. I would hate to go and download separate files for a single install.
/me shoots John, the three handed freak...
--
David Pahl
Zikula Support Team -
- rank:
-
Professional
- registered:
- April 2004
- Status:
- offline
- last visit:
- 21.01.08
- Posts:
- 2723
I wrote an integration for this to scan for and render 3rd party needles. Any (available) module that contains a ../pnneedleapi/.. directory will be scanned for file-pairs (ie, needleName.php and needleName_info.php) which are then used for the needle.
The MultiHook module did get a few changes here and there, but nothing major. Most notably is the addition of the MultiHook_admin_collectthirdpartyneedles() function. I can't remember what all files I wrote in, though, so maybe I'll just upload the whole thing, as a patch version, to the NOC. Let's see if this thread turns up any interest.
:)
Edit: If this can be adopted, then my original question is moot. ;)
edited by: alarconcepts, Jul 07, 2007 - 04:18 PM
--
Photography | PHP | Other -
- rank:
-
Professional
- registered:
- April 2004
- Status:
- offline
- last visit:
- 21.01.08
- Posts:
- 2723
I submitted the 3rd party needle integration to the patch tracker under Patch to allow 3rd p…be scanned and used. I also included a more detailed document on how to create 3rd party needles.
Enjoy!
:)
--
Photography | PHP | Other
