I am currently overriding Joomla 3's deleteList like so:
public function delete(){
if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR);
$path = JPATH_ROOT;
$path = JPath::clean($path. DS ."images". DS ."menu_slider". DS );
foreach(glob($path.'*/penguins.*') as $image){
unlink($image);
}
return parent::delete();
}
In the item or items there's a image associated with them, so the database has the following:
id title image
So my question really is how would i get the image name assigned to the item or items when deleting?