Closed (outdated)
Project:
Search and Replace Scanner
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2009 at 18:20 UTC
Updated:
19 May 2018 at 19:54 UTC
Jump to comment: Most recent
Comments
Comment #1
aasarava commentedHi Steve,
Thanks for the idea, I'll consider it for a future version.
In the meantime, are you familiar with the hook_form_alter() function? The best option would be for you to write your own module that does nothing more than implements hook_form_alter() to hide the "replace" field and button on the Search form. You could add role-checking in your hook_form_alter() function to only hide the field and button for certain roles.
Barring that, the other option -- which I'm not supposed to advocate -- is for you to edit scanner.module and comment out the following lines in the scanner_form() function:
The reason this is usually frowned up on is that your changes will get overwritten if you ever upgrade to a newer version of the Scanner module.
Comment #2
steve02476 commentedThanks for the tips! I think writing my own module is beyond my abilities, but if I ever get a yearning to try module development out maybe that would be a good first try? Also, thanks for the module editing tip - I could do that, but I think I'll just restrict permissions to use Scanner for now.
Comment #3
damienmckennaI am sorry, but we're not supporting the D6 version of the module anymore.