I need to create a custom submit handler when blocks that are assigned to a certain region are saved (whether an existing or a new block)
I am using :
function MY_MODULE_NAME_form_alter(&$form, $form_state, $form_id) {
if ($form['#id'] == 'block-admin-configure'){
//If the block being saved is in region "Header" then do something
}
Can someone tell me what to replace my commented line with please ?
array_filter($form_state['regions'])
, that contains the selected regions by machine name