Fixed PHP warnings.
Uploaded constants about the collection status.
Fixes the javascript for the macros in module plugins. TICKETS #1258