Skip to content

Commit

Permalink
Fixing another warning in my moodle blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mjollnir_ committed Aug 23, 2005
1 parent ee6055e commit 44f90f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions my/pagelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ function blocks_default_position() {
return BLOCK_POS_LEFT;
}

function blocks_get_positions() {
return array(BLOCK_POS_LEFT, BLOCK_POS_RIGHT);
}

function blocks_move_position(&$instance, $move) {
if($instance->position == BLOCK_POS_LEFT && $move == BLOCK_MOVE_RIGHT) {
return BLOCK_POS_RIGHT;
Expand Down

0 comments on commit 44f90f4

Please sign in to comment.