Skip to content

Commit

Permalink
Added hook_update to si8_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
arrubiu committed Nov 12, 2017
1 parent 632a9e4 commit 05c410c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modules/custom/si8_utils/si8_utils.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

/**
* @file
* Install, update and uninstall functions for the si8_utils module.
*/

/**
* Truncate redirect_404 table
*/
function si8_utils_update_8001(&$sandbox) {
$database = \Drupal::database();
$database->truncate('redirect_404')->execute();
}

0 comments on commit 05c410c

Please sign in to comment.