/** * @param $formData * @param string $entryPoint * @return bool */ function tryDetachSubmit($formData, $entryPoint = 'internal') { if (isset($formData['force']) && $formData['force']) { $force = true; } else { $force = false; } $success = $this->userNova->detachVolume($formData['volumeid'], $force); if ($success) { $this->getOutput()->addWikiMsg('openstackmanager-detachedvolume'); } else { $this->getOutput()->addWikiMsg('openstackmanager-detachvolumefailed'); } $out = '<br />'; $out .= Linker::link($this->getPageTitle(), $this->msg('openstackmanager-backvolumelist')->escaped()); $this->getOutput()->addHTML($out); return true; }