Closed (fixed)
Project:
Tweet Button
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Jul 2011 at 01:19 UTC
Updated:
2 Jan 2012 at 21:50 UTC
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
Comment #1
Juan C commentedThank you. I had this error gone now "Warning: Invalid argument supplied for foreach() in _block_rehash() (line 385 of /mysite/modules/block/block.module)"
Comment #2
chia commentedThe module now implements hook_block_info