Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: chia commentedThe module now implements hook_block_info