/** * Restore the page * * @param stdClass $nodeData * @param int $destination * @return array */ public function restoreNode($nodeData, $destination) { /** @var $node t3lib_tree_pagetree_Node */ $node = t3lib_div::makeInstance('t3lib_tree_pagetree_Node', (array) $nodeData); try { t3lib_tree_pagetree_Commands::restoreNode($node, $destination); $newNode = t3lib_tree_pagetree_Commands::getNode($node->getId()); $returnValue = $newNode->toArray(); } catch (Exception $exception) { $returnValue = array('success' => FALSE, 'message' => $exception->getMessage()); } return $returnValue; }