Block init function

Block init function

Amy Stewart發表於
Number of replies: 0

I have written a block that accesses an external database.  It appears that the block's init function is running on almost every page, whether the block has been added to the page or not.  Is there any way to determine if the block has been added to the page?  I've tried using $this->instance->id, but it doesn't appear that it is set even on pages where the block has been added.


Thanks!

評比平均分數: -