Because when I install the module as part of my drupal distribution I am building, I get to the 'Verifying requirements' phase of the installer and get this error there:
"Superfish module requires the Libraries module to be installed."
However, my libraries & superfish libraries are all installed fine.
After researching a bit and looking into the documentation at http://api.drupal.org/api/drupal/developer--hooks--install.php/function/... it seems like 'module_exists()' should not be used to check for the libraries module. 'Install-time requirements must be checked without access to the full Drupal API, because it is not available during install.php'
I think we should manually scan the relevant directories like libraries_get_libraries() does - see http://api.acquia.com/api/open_atrium/profiles--openatrium--modules--con....
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | hook_requirements_115892_3.patch | 561 bytes | jarrodirwin |
| #2 | hook_requirements_1158890_1158926_2.patch | 1.49 KB | girishmuraly |
| #1 | hook_requirements_install_phase_1158926_1.patch | 1.12 KB | girishmuraly |
Comments
Comment #1
girishmuraly commentedI think drupal_get_path() will do the job. Thats what is used in drupal_install_system() anyway. So, using the same here. Patch attached.
Comment #2
girishmuraly commentedCombined patch from http://drupal.org/node/1158890#comment-4474442.
Comment #3
rickvug commentedThe patch applies for me and fixes the problem. I do wonder why this check is needed as superfish has a dependency on libraries, which should stop module installation in the first place. Changing "install" to "runtime" also fixes the problem.
Comment #4
pillarsdotnet commentedThe check is needed for people who are upgrading from a version that did not have the dependency on libraries.
Comment #5
samhassell commentedpatch works with current dev. I'm also using superfish in an install profile.
Setting to RTBC, if no one minds :)
Comment #6
mehrpadin commentedHey there,
Thanks to all, fixed as of v1.9-beta3 :)
Comment #8
mehrpadin commentedUpdate: Changed hook_requirements completely; Libraries API is no longer mandatory, therefore no check and so on. Please try the development release.
Comment #9
jarrodirwin commentedThis is still an issue with the latest dev release (commit on 2012-10-27) when installing with an install profile.
I have created a patch based off that in #1 which lets us get past this.
Comment #10
mehrpadin commentedMy bad, try the dev, just updated, let me know if it's any better, thanks!
Comment #11
oenie commentedFix in the latest version does the trick for me, code looks ok (similar to other plugin-related modules i have checked)
Tested in a build with an install profile.