Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2012 at 04:33 UTC
Updated:
31 Aug 2012 at 10:35 UTC
Replaces Drupal's 'blue smurf' no search results text with the contents of a custom block. This allows content editors to easily substitute HTML for the 'blue smurf' text. There are other modules that replace the 'blue smurf' text, but this module is different b/c of the use of a block to allow HTML and easy editing by content editors.
Link to project page: http://drupal.org/sandbox/lindsayo/1510842
Link to repository: git clone --branch 6.x-1.x http://git.drupal.org/sandbox/lindsayo/1510842.git
For Drupal 6. D7 version soon.
Comments
Comment #1
jthorson commentedJust a note ... lindsayo is aware of (and understands) the 'minimum code' suggestion for an application, and would like this module evaluated for promotion separate from the 'create full projects' permission.
Comment #2
adammaloneJust had a quick look through the code and a couple of things stand out to me:
variable_set('no_search_results_content', $edit['no_search_results_content']);you will need to include an install file for your module that deletes the variables upon module uninstallvariable_get('no_search_results_content', t('No results'));just in case the site administrator forgets to set the contentThere are a couple of points I've made that could be further discussed but certainly a few points to think about!
Comment #3
lindsayo commentedThank you, typhonius for these very helpful suggestions. You taught me some stuff, I really appreciate it.
Thanks!
Comment #4
lindsayo commentedComment #4.0
lindsayo commentedUpdated issue summary.
Comment #5
adammaloneIt's such a small thing to note, but you might want to change your repository address to
git clone --branch 6.x-1.x http://git.drupal.org/sandbox/lindsayo/1510842.gitas it's on the wrong branch at the moment and that could confuse people trying to grab it!I've taken a look at your install file. Just wondering why you're deleting the custom_smurfs_no_results_content variable when you don't set it within the module?
I'd also perhaps suggest moving
$block = variable_get('custom_smurfs_no_results');to within the if statement. It is a very small thing but will stop drupal querying the variables database unnecessarily.You raise a good point about using filter_xss_admin instead of check_plain and I'll have a think about if that is the best implementation. Alternatively someone else in the community may have an idea to weigh in with.
Comment #6
lindsayo commentedComment #7
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.
Comment #7.0
klausiFixed the branch name.