zmedia_has_chosen
Used by the admin as a callback when a media file has been selected for insertion into the rich-text editor.
The required id argument is the selected media resource. The action closes
the dialog and calls window.z_choose_zmedia(Id), allowing the active editor to
insert the corresponding media marker.
This is the final internal step of the zmedia chooser workflow and is not
normally wired directly.