Skip to content

Commit

Permalink
Merge branch 'wip-MDL-48366-m27' of git://github.com/marinaglancy/moo…
Browse files Browse the repository at this point in the history
…dle into MOODLE_27_STABLE
  • Loading branch information
Sam Hemelryk committed Dec 9, 2014
2 parents 5e9b48a + 44af708 commit 0f5ebed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions blocks/edit_form.php
Expand Up @@ -84,6 +84,12 @@ function definition() {
$weightoptions[$last] = get_string('bracketlast', 'block', $last);

$regionoptions = $this->page->theme->get_all_block_regions();
foreach ($this->page->blocks->get_regions() as $region) {
// Make sure to add all custom regions of this particular page too.
if (!isset($regionoptions[$region])) {
$regionoptions[$region] = $region;
}
}

$parentcontext = context::instance_by_id($this->block->instance->parentcontextid);
$mform->addElement('hidden', 'bui_parentcontextid', $parentcontext->id);
Expand Down

0 comments on commit 0f5ebed

Please sign in to comment.