Porting function in module to D7. refs #14127