How To: Add/remove the action from EditControlBlock(ECB)

1.    Make a copy of the LAYOUTS folder from “…\12\TEMPLATE\” .
2.    From IIS, make your site collection point to your custom LAYOUTS folder.
3.    Now you can look for CORE.JS into your custom LAYOUTS folder .

CORE.JS
4.    For “Edit in Microsoft Office InfoPath” link, search for “L_EditIn_Text” and comment out the code for “strDisplayText”
5.    For “Download a copy” link, search for “L_DownloadACopy_Text” and comment out the code for “menuOption”

Note: Please remember to keep a track of all changes you do in your custom LAYOUTS folder because for any future releases/ SPs/ Patches, you may need to apply those changes in your custom layouts folder as well. Modifications of out of the box files are not supported.

 

Keywords: ECB menu, removing the links from ecb menu, custom actions, hiding actions