I have custom action defined in my SharePoint 2007 feature. It adds new item to document library menu.
<CustomAction Id="UserInterfaceLightUp.MobiusDiscretionaryArchivingLibMenu"
RegistrationType="List"
RegistrationId="101"
GroupId="ActionsMenu"
Location="Microsoft.SharePoint.StandardMenu"
Sequence="1002"
ImageUrl = "/_layouts/IMAGES/MyImage.gif"
Title="My Title"/>
When I deploy it to SP 2010 I get the same behavior for 2007 UI mode and these actions becomes available from "Custom Commands" in 2010 UI mode. Is there any way to not allow menu appear in "Custom Commands". For this I would like to create ribbon buttons for 2010 UI mode only and menus for 2007 UI mode only.
Thanks beforehand.
Answer from msdn forum: http://social.msdn.microsoft.com/Forums/en/sharepoint2010programming/thread/5f9d8557-e731-486f-9ae3-9b0aa4873541
Thanks for help.