API page: http://api.drupal.org/api/drupal/modules--block--block.module/function/b...
Describe the problem you have found:
$block is not a parameter:
$block object for $module.
Oh this one is nice. Here is the original block in php
* @param $module * Name of the module that implements the block to load. * @param $delta * Unique ID of the block within the context of $module. Pass NULL to return * an empty $block object for $module.
I think you're just objecting to this:
* @param $delta * Unique ID of the block within the context of $module. Pass NULL to return * an empty $block object for $module.
OK. That's a valid point. $block here should just be "block", as in "return an empty block object...". Sounds like a good project for a novice contributor to learn how to make a patch!
I'd be happy to learn how to make a patch - please point me in the right direction ..
lukus - I just followed the steps on this page - http://drupal.org/project/drupal/git-instructions
Not sure about how to properly name this patch.
http://drupal.org/documentation/git - learn about Githttp://drupal.org/node/707484 - patching specifics
Sorry, cross-post! Looks like you found some instructions. :)
The patch looks fine (assuming the test bot agrees), and should apply to d7 and d8. Thanks!
Oh, and regarding patch naming - the name you chose is fine. Usually people put the issue number and a description in the name, which you did.
Committed to 7.x and 8.x.
Thx for the info - I'll be good to go next time.
Automatically closed -- issue fixed for 2 weeks with no activity.
Drupal is a registered trademark of Dries Buytaert.