onShelve Extension function

Is it possible to have an onShelve extension function (Alarm summary) feature that passes a list of the alarms to be shelved (on Shelve button click) , similar to the acknowledge extension function, the goal is to add a note into a DB for the reason of shelving.
Thanks