I am developing a Drupal 7 theme. I want to change the position of the blocks when a user set my theme as default.
In my theme the main menu is positioned in left sidebar. Suppose the current theme of the user has main menu in the header block, when a user enables my theme, the main menu should go to the left sidebar.
Basically I want to position the block using code when my theme is set as default.
Any way to implement this?