Updated so nothing in the database is being manipulated directly except for the block position. look into moving this functionality into the blocks_execute_action.
Updated so nothing in the database is being manipulated directly except for the block position. look into moving this functionality into the blocks_execute_action.

dilawar/moodle