Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
system.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Mar 2009 at 03:43 UTC
Updated:
3 Jan 2014 at 00:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
David_Rothstein commentedWhile not an "extreme novice" patch, it seems like this would be a good patch for someone to work on if they are interested in learning more about the various hook_block_op() functions in Drupal 7.
(Basically, it looks like the bug arose because some of the existing hook_block functions in system.module were not updated to reflect the new blocks that were added. So fixing this bug is a good way to learn about how new blocks are/should be added to the codebase.)
Comment #2
foxtrotcharlie commentedMy second ever patch, first core patch!
This patch fixes the issue where the "powered-by" Drupal block's configuration settings were showing up in the configure screen for the system menu blocks. The powered by Drupal configuration settings now only show if the block $delta == 'powered-by'.
Is this a good enough description of the patch?
Comment #3
catchLooks fine to me.
Comment #4
webchickHey, great catch, foxtrotcharlie! :) Yep, your patch name looks great and conforms to coding standards, rolled from Drupal root, etc. Way to go!
Committed to HEAD. Oopsie. :D
Comment #5
foxtrotcharlie commentedThanks webchick :-) I was listening to the latest lullabot podcast where you mentioned the novice patches, and well, the rest is history ;-)
Comment #6
David_Rothstein commentedNice work! One thing missing, though - you can see from the above screenshot that there is help text showing at the top of the page (that describes what the "powered by Drupal" block is). That wasn't fixed by the patch that was committed, so it's still showing up on the configuration page for all the new menu blocks.
Would you be interested in trying to fix that also?
Comment #7
foxtrotcharlie commentedDamn - was too eager! Will roll a new patch shortly.
Comment #8
foxtrotcharlie commentedOne more thing - I assume that the new patch is rolled against my already patched version, as it's already been checked into CVS ?
Comment #9
webchickCorrect. You'd do:
to grab the latest code from CVS
And then make your modifications and roll a patch against that.
Comment #10
foxtrotcharlie commentedRemoved the "Powered by Drupal" help text that was appearing in the system defined menu blocks. This help text should now only appear on the configuration page for the "Powered by Drupal" block.
Comment #11
David_Rothstein commentedYup, that should do it! PHP was just happily evaluating any string to be equal to the integer 0 :) So this is actually an older bug that wasn't revealed until now (since up until now, the powered by Drupal block was the only one provided by system.module).
Comment #12
webchickExcellent! Committed this, too. Thanks, folks! :)
Comment #13
foxtrotcharlie commentedThanks David_Rothstein, webchick and catch for your help. Looking forward to contributing more :-)