+ //check for contribution page id.
+ $contribPageId = CRM_Utils_Request::retrieve('pid', 'Positive', $this);
+ if ($contribPageId) {
+ CRM_Core_Error::deprecatedFunctionWarning('pass contribution_page_id');
+ $this->_formValues['contribution_page_id'] = $contribPageId;
+ }