Add a contributed module¶
Whenever you want to add a module (no matter if it’s custom or not) you need to guarantee two specific conditions:
- The module needs to be added to the codebase
- The module needs to be added to the project’s make file so if the website gets rebuild (for instance when dkan get’s updated), the module remains in the codebase and doesn’t get deleted
Let’s say, for instance, that we want to add the ShareThis module to the project.
Add the module to the custom.make file¶
Add the following line to the cusmom.make
projects[] = sharethis
If you need the project to be at a specific version then you can add this instead:
projects[sharethis][version] = 2.12
Add the module to custom_config¶
Add the module to the custom_config.features.features_master.inc file:
$features_master = data_config_enabled_modules();
$features_master['modules']['sharethis'] = 'sharethis',
Remake the project¶
Run:
ahoy build custom
That should put the sharethis module at docroot/sites/all/modules/contrib
.