if ($count > 0) {
$hasChildren = true;
}
}
}
if ($hasChildren) {
$http->setSessionVariable('CurrentViewMode', $viewMode);
$http->setSessionVariable('DeleteIDArray', array_keys($removeList));
$http->setSessionVariable('ContentNodeID', $nodeID);
$http->setSessionVariable('ContentLanguage', $languageCode);
return $module->redirectToView('removeobject');
} else {
if (eZOperationHandler::operationIsAvailable('content_removelocation')) {
$operationResult = eZOperationHandler::execute('content', 'removelocation', array('node_list' => array_keys($removeList)), null, true);
} else {
eZContentOperationCollection::removeNodes(array_keys($removeList));
}
}
return $module->redirectToView('view', array($viewMode, $redirectNodeID, $languageCode));
} else {
if ($http->hasPostVariable('EditButton')) {
if ($http->hasPostVariable('ContentObjectID')) {
$parameters = array($http->postVariable('ContentObjectID'));
if ($http->hasPostVariable('ContentObjectVersion')) {
$parameters[] = $http->postVariable('ContentObjectVersion');
if ($http->hasPostVariable('ContentObjectLanguageCode')) {
$parameters[] = $http->postVariable('ContentObjectLanguageCode');
}
} else {
if ($http->hasPostVariable('ContentObjectLanguageCode')) {
$languageCode = $http->postVariable('ContentObjectLanguageCode');