ifthenelse-8.x-1.x-dev-no-core/modules/contrib/if_then_else/modules/if_then_else_examples/if_then_else_examples.install

modules/contrib/if_then_else/modules/if_then_else_examples/if_then_else_examples.install
<?php

/**
 * @file
 * Installation hooks for if_then_else_examples module.
 */

/**
 * Implements hook_uninstall().
 */
function if_then_else_examples_uninstall() {

  // Delete Configuration generated at activation.
  $dir = DRUPAL_ROOT . DIRECTORY_SEPARATOR . drupal_get_path('module', 'if_then_else_examples') . DIRECTORY_SEPARATOR . 'config/install';
  $files = file_scan_directory($dir, '/.*\.yml$/');

  foreach ($files as $file) {
    \Drupal::configFactory()->getEditable($file->name)
      ->delete();
  }
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc