0

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?

  • It would be helpful to see your full hook_block_info & hook_block_view functions. – Chance G Feb 21 '13 at 0:38
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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