You are here

acsf.install in Acquia Cloud Site Factory Connector 8

Same filename and directory in other branches
  1. 8.2 acsf.install

Install, update and uninstall functions for the Acquia Site Factory module.

File

acsf.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the Acquia Site Factory module.
 */
use Drupal\acsf\Event\AcsfEvent;

/**
 * Implements hook_install().
 */
function acsf_install() {

  // Initiate an event to run post-acsf-install tasks. We assume this event
  // will only ever do anything useful on ACSF environments.
  if (!empty($GLOBALS['gardens_site_settings'])) {
    acsf_build_registry();
    $type = 'acsf_install';
    $event = AcsfEvent::create($type);
    $event
      ->run();
  }
}

Functions

Namesort descending Description
acsf_install Implements hook_install().