title: Joomla trigger function when clicking delete (trash)
body: <p>I'm creating a custom component for Joomla 3.0 but need to know how to run a function when the user clicks "empty trash" in the administrator side.</p>
  
  <p>The function I'm trying to run would delete an image from the filesystem. JToolBarHelper::deleteList seems to only take a javascript function?</p>