- The principal gave Martha an award.
- The principal gave an award to Martha.
Many grammar sites (e.g. www.k12reader.com) say that Martha in the first sentence is an Indirect Object and Martha in the second sentence is an object of preposition.
If it is so, to Martha in the second sentence is a prepositional phrase. Then, my question is: what function does this prepositional phrase do in the sentence?