Hi all,
Because tweetbutton_block_info() returns nothing, it causes a problem in _block_rehash() in block.module (_block_rehash() runs a foreach() against a null value because tweetbutton_block_info() returns nothing). I propose removing that empty hook:


 
 /**
- * Implementation of hook_block_info()
- */
-function tweetbutton_block_info() {
-  
-}
-
-/**
  * Helper function to build the required tweet attributes
  * @param $object
  *   Entity object can either be (node, user, taxonomy) 

Comments

Juan C’s picture

Thank you. I had this error gone now "Warning: Invalid argument supplied for foreach() in _block_rehash() (line 385 of /mysite/modules/block/block.module)"

chia’s picture

Status: Active » Fixed

The module now implements hook_block_info

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.