[refs #1982] Implemented the template_preprocess_page function