calendar_event_notifications-1.0.0/calendar_event_notifications.install
calendar_event_notifications.install
<?php
/**
* @file
* Contains functions related to send email notifications after node operations.
*/
/**
* Implements hook_unistall().
*/
function calendar_event_notifications_uninstall() {
// Delete all nodes of given content type.
$storage_handler = \Drupal::entityTypeManager()
->getStorage('node');
$nodes = $storage_handler->loadByProperties(['type' => 'calendar_event_notification']);
$storage_handler->delete($nodes);
$content_type = \Drupal::entityTypeManager()->getStorage('node_type')->load('calendar_event_notification');
$content_type->delete();
}
