Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Add a section to the the context settings form for selecting the region you would like to place the block in.
$placement = variable_get('context_ui_editor_block_region', 'footer');
Should set the variable 'context_ui_editor_block_region' when saved and default to 'footer'.