You are here

modal_page.install in Modal 8

Install, update and uninstall functions for the Modal Page.

File

modal_page.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the Modal Page.
 */
use Drupal\Core\Url;

/**
 * Implements hook_install().
 */
function modal_page_install() {
  drupal_set_message(t('Thanks for installing Modal Page'));
  drupal_set_message(t('You may create Modal by visiting <a href="@url_settings">@url_settings</a>', [
    '@url_settings' => Url::fromRoute('modal_page.settings')
      ->toString(),
  ]));
}

/**
 * Implements hook_uninstall().
 */
function modal_page_uninstall() {
  \Drupal::configFactory()
    ->getEditable('modal_page.settings')
    ->delete();
}

Functions

Namesort descending Description
modal_page_install Implements hook_install().
modal_page_uninstall Implements hook_uninstall().