xtcentity-2.x-dev/xtcprofile/xtcprofile.install
xtcprofile/xtcprofile.install
<?php
/**
* @file
* Installation actions for Xtended Content Profile.
*/
/**
* Implements hook_uninstall().
*
* Deletes all content and configuration installed by this module.
*/
function xtcprofile_uninstall() {
// Delete all of the configuration installed by this module.
$dir = drupal_get_path('module', 'xtcprofile') . '/config/install';
$files = \Drupal::service('file_system')->scanDirectory($dir, '/.*/');
foreach ($files as $file) {
\Drupal::configFactory()->getEditable($file->name)->delete();
}
\Drupal::logger('xtcprofile')->info(t('Deleted xtcprofile configuration'), []);
}
