I have to perform certain operations when block configurations are get changed. And I successfully implemented hook_block_save() and worked.

But the hook is not called up when we change the 'region' of blocks in page 'admin/structure/block'.

Are there any other methods other than injecting an extra submit handler to the form displayed in 'admin/structure/block' page?

  • what you want to do ?
    – Ashu
    Commented Jun 29, 2012 at 5:40
  • Certain blocks are dynamically created and those will have corresponding nodes. Change in block configurations have to be reflected in node's fields too.
    – Junaid
    Commented Jun 29, 2012 at 5:50

1 Answer 1


The block_admin_display_form_submit() function (submit handler for the block admin form) manipulates the region value for the blocks in the database directly, and doesn't invoke any hooks.

That being said, the only 'good' way you're going to be able to do this is to add an additional submit handler to the form in a form_alter hook as you've suggested.

  • yes, I chose that method.
    – Junaid
    Commented Jun 30, 2012 at 11:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.