Updated for drupalPostForm() and plugin manager changes