Skip to content

Instantly share code, notes, and snippets.

@greggles
Created May 7, 2012 15:53
Show Gist options
  • Save greggles/2628603 to your computer and use it in GitHub Desktop.
Save greggles/2628603 to your computer and use it in GitHub Desktop.
example drush sanitize hook
<?php
function paranoia_drush_sql_sync_sanitize($source) {
drush_sql_register_post_sync_op('webform_delete_webform_submissions',
dt('Delete all webform_submission primary entries'),
"delete from webform_submissions;");
drush_sql_register_post_sync_op('webform_delete_webform_submitted_data',
dt('Delete all webform_submitted_data field level entries'),
"delete from webform_submitted_data;");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment