Skip to content

Instantly share code, notes, and snippets.

@amphibian
Last active December 11, 2015 10:38
Show Gist options
  • Save amphibian/4588185 to your computer and use it in GitHub Desktop.
Save amphibian/4588185 to your computer and use it in GitHub Desktop.
Addition to pi.delete.php to trigger the delete_entries_loop hook. (For http://devot-ee.com/add-ons/delete-entries-and-comments)
// ~ Line 120
if ($deleted == TRUE)
{
$this->EE->extensions->call('delete_entries_loop', $entry_id, $channel_id);
$return = ($this->EE->TMPL->fetch_param('message_success') ? $this->EE->TMPL->fetch_param('message_success') : $this->message_success);
}
else
{
$return = $this->message_failure;
}
return $return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment