You are here

function campaignmonitor_campaign_install in Campaign Monitor 8

Implements hook_install().

Create the file directory that we need.

File

modules/campaignmonitor_campaign/campaignmonitor_campaign.install, line 13
Install functions.

Code

function campaignmonitor_campaign_install() {
  $path = \Drupal::service('file_system')
    ->realpath("public://");
  $dir = '/campaignmonitor';
  mkdir($path . $dir);
}