/**
  * Save page layout
  */
 function savePageLayout()
 {
     global $lng, $ilCtrl;
     $ilCtrl->setParameter($this, "hierarchy", $_GET["hierarchy"]);
     foreach ($_POST["id"] as $id) {
         ilLMPageObject::writeLayout(ilUtil::stripSlashes($id), ilUtil::stripSlashes($_POST["layout"]), $this->object);
     }
     ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
     if ($_GET["hierarchy"] == 1) {
         $ilCtrl->redirect($this, "chapters");
     } else {
         $ilCtrl->redirect($this, "pages");
     }
 }
 /**
  * Save page layout
  */
 function savePageLayout()
 {
     global $lng, $ilCtrl;
     foreach ($_POST["id"] as $id) {
         $id = ilUtil::stripSlashes($id);
         ilLMPageObject::writeLayout(ilUtil::stripSlashes($id), ilUtil::stripSlashes($_POST["layout"]), $this->content_object);
     }
     ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
     $ilCtrl->redirect($this, "showHierarchy");
 }