Drupal Enterprise: How to Add a New Drupal Module to Your Site
The University's standard Drupal installation includes a number of modules that you can enable and disable in the Drupal interface. The list of included modules is published on the Technology Help site for Drupal 7, Drupal 8, and Drupal 9. To enable modules that are already included in the University's Drupal instance, follow the instructions.
If you wish to install a new module on your site, you first need to add it to your github repository. After that, code will need to be deployed for the respective environment in order for the new module to show up on your site.
- Download and unzip the module file into a module_name folder, where module_name is the name specific to the module you are working with, and branch_name is the name of the branch in your repo that is associated with the environment in which you want to install the module (i.e. develop and master).
- In a terminal:
Clone your repository into a local_folder, where local_folder is the name you have chosen for your repository's local location. To get the SSH clone URL open the repository in a web browser and copy the SSH clone URL from the box on the right side.git clone -b [branch_name] [SSH_clone_URL] [local_folder]
Copy the downloaded module_name folder to the modules folder in local_folder.
Stage the copied folder to be added to your repository.git add [module_name]
Commit the module to your local repositorygit commit -m "Adding module [module_name]"
Push the changes to the remote github.umn.edu server into the branch you are currently working on.git push origin [branch_name]
Submit a Drupal Support Request form requesting to run the deployment plan for your site.
If you do not see a modules folder in your local repository, make sure you have set up your repository to work with UMN Drupal Enterprise.