Installation/Uninstallation

Installation

Campaign Kit requires Composer to manage dependencies. Campaign Kit has five modules:

  • Campaign Kit

  • Campaign Kit Core

  • Campaign Kit Donor Wall

  • Campaign Kit Queuing

  • Campaign Kit Demonstration (do not install on production).

Requirements and module dependencies (with all modules installed):

Install Campaign Kit and Its Dependencies

Open the composer.json file in the project root directory and add the following to the list of required modules:

"drupal/campaign_kit": "^1.0"

Or from the command line use:

composer require drupal/campaign_kit

Campaign Kit might require patches; check the composer.json file in the module. Also, enable patching in your composer file by adding the following in the "extra" section of composer.json:

"enable-patching": true

Then:

composer update

Enabling Campaign Kit

Using the GUI

Go to admin/modules, set the checkbox for Campaign Kit and Campaign Kit Core and click the Install button.

The configuration screens are located at admin/campaign_kit.

Enable the module atadmin/modulesand click the Install button.

Using Drush and Drupal Console

Install Campaign Kit, Campaign Kit Core, and Campaign Kit Demo. Run the following commands from the command line to install them.

Drush

drush -y en campaign_kit

To see examples use drush -y en campaign_kit campaign_kit_demo

Drupal Console

drupal module:install campaign_kit

To see examples use drupal module:install campaign_kit campaign_kit_demo

Using Simplytest.me

You can try the module at Simplytest.me:

  1. Choose Campaign Kit from the text field.

  2. Click Launch Sandbox.

  3. Log in with:

    Username: admin

    Password: admin

  4. Click on Extend to be brought to admin/modules.

  5. Enable the following modules:

    Campaign Kit Campaign Kit Core

    Campaign Kit Demonstration

  6. Click Install.

  7. Drupal will ask permission to install additional modules. Give your assent.

  8. Once everything is installed, from the top menu visit Structure | Campaign Kit. This is the primary menu for the Kit.

Uninstallation

Uninstall the module through admin/modules. Campaign Kit will delete all tables and configuration it installed.

Drush

drush -y pm:uninstall campaign_kit

drush -y pm:uninstall campaign_kit_core

drush -y pm:uninstall campaign_kit_queuing

drush -y pm:uninstall campaign_kit_demo

Drupal Console

drupal module:uninstall campaign_kit

drupal module:uninstall campaign_kit_core

drupal module:uninstall campaign_kit_queing

drupal module:uninstall campaign_kit_demo

Last updated