Hi,
Thank you for the quick response.
I will play around with your suggestion when I have access to my code tonight - thanks in advance!
Kobus
Hi again,
From the proposed solution, it seems that it would mean that I can not just copy a folder and drop it into another site to get that module into that site then?
I was hoping to eventually for each module (front-end and back-end) have their own folders for CSS, scripts, images, etc., if needed.
I understand that including these files separately for each module does send more http requests and is not best practice, and is therefore making the page slow, but I really want to ensure that a module is literally drag and drop, and then running the install() method creates the database table schema and default values. My process for installing a module should ideally be simple:
1. Copy folder (e.g. /modules/admin/poll/*.*) into a new site’s corresponding folder.
2. Log in with admin privileges to the new site.
3. Run /modules/admin/poll/install on the new site, to create the table structure for polls on the new site, give the default access (via SQL, etc.).
This module should now be working with the new site. In short, it is a very Drupal’ish approach to permissions management. All I should now do is give the necessary permissions.
If you have a suggestion to achieve this, it would be awesome.
Thanks
Kobus