/** * Delete an article image. * @param $args array ($articleId, $fileId) */ function deleteArticleImage($args) { $articleId = isset($args[0]) ? (int) $args[0] : 0; $galleyId = isset($args[1]) ? (int) $args[1] : 0; $fileId = isset($args[2]) ? (int) $args[2] : 0; $revisionId = isset($args[3]) ? (int) $args[3] : 0; $this->validate($articleId, SECTION_EDITOR_ACCESS_EDIT); $submission =& $this->submission; SectionEditorAction::deleteArticleImage($submission, $fileId, $revisionId); Request::redirect(null, null, 'editGalley', array($articleId, $galleyId)); }
/** * Delete an article image. * @param $args array ($articleId, $fileId) */ function deleteArticleImage($args) { $articleId = isset($args[0]) ? (int) $args[0] : 0; $galleyId = isset($args[1]) ? (int) $args[1] : 0; $fileId = isset($args[2]) ? (int) $args[2] : 0; $revisionId = isset($args[3]) ? (int) $args[3] : 0; list($journal, $submission) = SubmissionEditHandler::validate($articleId, SECTION_EDITOR_ACCESS_EDIT); SectionEditorAction::deleteArticleImage($submission, $fileId, $revisionId); Request::redirect(null, null, 'editGalley', array($articleId, $galleyId)); }
/** * Delete an article image. * @param $args array ($articleId, $fileId) * @param $request PKPRequest */ function deleteArticleImage($args, &$request) { $articleId = (int) array_shift($args); $galleyId = (int) array_shift($args); $fileId = (int) array_shift($args); $revision = (int) array_shift($args); $this->validate($articleId, SECTION_EDITOR_ACCESS_EDIT); SectionEditorAction::deleteArticleImage($this->submission, $fileId, $revision); $request->redirect(null, null, 'editGalley', array($articleId, $galleyId)); }