Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.