Commit 90eaccf9 authored by Lily Yan's avatar Lily Yan
Browse files

ISTWCMS-3825 Add startTransaction for delete aggregator_feed and...

ISTWCMS-3825 Add startTransaction for delete aggregator_feed and aggregator_item for the given feed id when uninstall module
parent 21840176
......@@ -32,6 +32,10 @@ function uw_sites_all_install() {
* Implements hook_uninstall().
*/
function uw_sites_all_uninstall() {
// The transaction opens here.
$transaction = \Drupal::database()->startTransaction();
$title = "Web-resources news";
$fid = db_query('SELECT fid FROM {aggregator_feed} WHERE title = :title', array(':title' => $title))->fetchCol();
if (!empty($fid)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment