Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So i've run into an issue with a block somehow losing its region placement somewhat randomly. For background the block is very simple

        $blocks['tx_leftcol_block'] = array(
      'info' => t('Tx leftcol block'),

The content isn't the issue, as even with some static content this block disappears.

On the blocks overview page this is placed on a custom region called tx sidebar (its a sidebar for certain pages). The weird part is other blocks show fine in this sidebar and dont lose placement, but for some reason this block gets disabled randomly, i.e. every couple of login/logouts it hides, or after a certain amount of time.

Any ideas what could be the cause?

share|improve this question
It would be helpful to see your full hook_block_info & hook_block_view functions. – Chance G Feb 21 '13 at 0:38
up vote 0 down vote accepted

It turned out to be a caching issue which i resolved by suing the block_flush_caches method.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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