Closed (fixed)
Project:
Freelinking
Version:
6.x-3.0-alpha2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2009 at 03:27 UTC
Updated:
24 Nov 2009 at 06:51 UTC
the way plugins were conceived is odd, IMHO it should be revamped
-- there is no need for using global variable at all
-- plugins shouldn't be required to be include files residing inside freelinking's directory
---- plugins need to be provided and distributed through contributed modules
---- plugins should be implemented as a hook mechanisms
-- requiring plugins to handle a $matches argument resulting from a preg_match is lazy design
-- having a hook might help a future development of a module which brings UI to create/configurate new plugins through admin's backend
Comments
Comment #1
arhak commentedalso there is a huge difference between handling internal vs external links
probably plugins or hooks should be provided separately for each case
Comment #2
Grayside commentedI definitely agree about a hook. I have a number of ideas for plugins that would not be suitable for a default installation. In fact, some of the existing plugins are strange for many Drupal sites to include.
Comment #3
eafarris commentedThere are five or six different issues here. Some I agree with, and some I do not.
Please create separate issues here for each of these ideas, so that their merits may be discussed individually.
And, while ideas are nice, ideas with code are much better.
Comment #4
Grayside commentedIssue #612434: Freelinking 3 Plugins via Hooks bring hooks to Freelinking 3. I am now looking at simplifying some of Freelinking's hook_filter code, and in the process will check on $matches usage.
Comment #5
Grayside commentedClosing in favor of the broader discussion over in #613236: Freelinking 3 - Roadmap.