I am experimenting with theme building and I wonder how can I get settings for a specific block in current layout?
For instance I want to change header template depending on what kind of menu is set in header block settings. I am using hook_preprocess_header(&$variables) for that. What function(s) should I use to get header block settings? There seem to be no cue in $variables.