MDL-36607: Improve block drag and drop

* Adding support for subpage
* Adding support for regions that do not start with "side-"
This commit is contained in:
Mark Nielsen
2012-12-10 14:12:57 +13:00
committed by Sam Hemelryk
parent 9d8abffc87
commit e893c6d442
3 changed files with 14 additions and 1 deletions
+2
View File
@@ -30,6 +30,7 @@ require_once(dirname(__FILE__) . '/../../config.php');
$courseid = required_param('courseid', PARAM_INT);
$pagelayout = required_param('pagelayout', PARAM_ALPHAEXT);
$pagetype = required_param('pagetype', PARAM_ALPHAEXT);
$subpage = optional_param('subpage', '', PARAM_ALPHANUMEXT);
$cmid = optional_param('cmid', null, PARAM_INT);
$action = optional_param('action', '', PARAM_ALPHA);
// Params for blocks-move actions
@@ -51,6 +52,7 @@ require_sesskey();
// Setting layout to replicate blocks configuration for the page we edit
$PAGE->set_pagelayout($pagelayout);
$PAGE->set_subpage($subpage);
echo $OUTPUT->header(); // send headers
switch ($action) {