- $sql="DELETE FROM ".TB_PREF."printers WHERE id='$selected_id'";
- db_query($sql,"could not delete printer definition");
- display_notification(_('Selected printer definition has been deleted'));
+ delete_printer($selected_id);
+ display_notification(_('Selected printer definition has been deleted'));