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 [email protected] site for both Drupal 7 and Drupal 8. 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.

Instructions

  1. 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).  
  2. In a terminal:
    1. 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]
    2. Copy the downloaded module_name folder to the modules folder in local_folder.
    3. Stage the copied folder to be added to your repository.
      git add [module_name]
    4. Commit the module to your local repository
      git commit -m "Adding module [module_name]"
    5. Push the changes to the remote github.umn.edu server into the branch you are currently working on.
      git push origin [branch_name]
       
  3. Submit a Drupal Support Request form requesting to run the deployment plan for your site.

Troubleshooting

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.

TDX ID
3601