Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Jan 2012 at 17:07 UTC
Updated:
4 Jan 2014 at 01:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jhodgdonSounds like a good idea -- just needs a patch. Probably a good Novice project.
Comment #2
avpadernoComment #3
jhodgdonThis is not your fault (in the original documentation), but I just noticed one error in this documentation:
FORM_ID needs to be set to 'search_form', not 'search', in that second line.
Other than that, looks good - thanks!
Comment #4
avpadernoI noticed that right two hours ago, as I was trying to understand how to override the search results returned from a module implementing
hook_search_info(), and noticed that the Node module implementsnode_form_search_form_alter(), notnode_form_search_alter().I will provide a patch in the next 10 minutes.
Comment #5
avpadernoComment #6
jhodgdonThat looks good, thanks! If we're lucky, it will apply to D7 too.
Comment #7
avpadernoWell, if it does, the reference to the files being patched needs to be edited. Drupal 7 modules are not inside the "core" directory.
:-)Comment #8
jhodgdonTrue, but webchick knows how to use -p2 to apply d8 patches to d7 without editing the patch. :) (You already have to use -p1 to ignore the a/ and b/ in the file names. -p2 will ignore the a/core and b/core prefixes, hence making it apply to d7 if the files are still the same.)
Comment #9
catchCommitted/pushed to 8.x. I have been requesting re-rolls even if I think the patch would probably apply with p2, but let's test jhodgdon's theory ;)
Comment #10
avpadernoI created the patch for Drupal 7, and both the patch are the same, apart the reference to the files being changed; both the patches are applied at the same offset.
Comment #11
avpadernoThis is the patch for Drupal 7.
Comment #12
webchickFor future reference, I am actually fine with patch -p2, at least for docs patches that have no chance of breaking tests. For other ones, generally a fresh patch is best just to be safe. With that said, thanks for the re-roll, which makes it easy. :)
Committed and pushed to 7.x.