Hi,
as a module developer, I'm succesfully using a server side library (MongoDB high-level api for PHP) by declaring it into the hook_libraries_info()
.
I need to use APIs provided by that library also in the hook_install()
and hook_uninstall
(in order to create/delete supporting data from the MongoDB only in these two phases).
Is it possible to do?
Additional info (not sure if necessary, but useful to describe the context): that library is the official one (https://github.com/mongodb/mongo-php-library) and, needing an autoloding mechanism based on composer.json
, I declare it into the hook_libraries_info()
by exploiting the xautoload Drupal module (https://www.drupal.org/project/xautoload).
Comments