Closed (fixed)
Project:
Linkit
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
18 Jun 2010 at 18:34 UTC
Updated:
6 Jul 2010 at 17:30 UTC
We use another module, Pathologic, that provides the same functionality as Path Filter, but cannot use the Linkit module (without modifying the .info file) due to dependency on Path Filter.
One option would be to use some logic in the module's info file to require Path Filter OR Pathologic, but I could not find any information on Drupal.org about how to do this, if it's even possibly. If there is no option to do this, would you consider removing the Path Filter dependency and just adding some documentation stating that Path Filter or Pathologic is required?
Nice looking module, I'm investigating it as an alternative to Node Picker.
Comments
Comment #1
anonI will see what I can do with
hook_requirementsComment #2
anonI think I have a solution for this, but how should we inform the users that this module have dependencies before they try to install it?
The "dependencies" in the .info file is very good at this point.
Any ideas?
Comment #3
anonCommited.
Comment #4
timwoodWow, thanks for fixing this so fast! Sorry I wasn't at a computer this weekend to respond. As for notifying the users of the dependency, were you able to come up with something, or did you figure out how to have a conditional dependency? I've seen other modules that provide a message on screen, either in web interface, or plain text if you enable the module with Drush, that directs the user to do something. Maybe this would be a good place for a notification?
Comment #5
anonThis is how I solved it.
What do you think about this?
Comment #6
timwoodI'm no coder, but I think this accomplishes what I suggested in comment #4. Thanks! I can't wait for the next version to be released.