public function deleteGedCom() { $canDo = JoaktreeHelper::getActions(); if ($canDo->get('core.delete')) { $cids = JFactory::getApplication()->input->get('cid', null, 'array'); $msg = ''; foreach ($cids as $cid_num => $app_id) { $app_id = (int) $app_id; $msg .= '+' . jt_gedcomfile2::deleteGedcomData($app_id, true); } $return = $msg; } else { $return = JText::_('JT_NOTAUTHORISED'); } return $return; }