_action); $controller->setEmbedded(TRUE); // set the userContext stack $session = CRM_Core_Session::singleton(); $session->pushUserContext(CRM_Utils_System::url('civicrm/contact/view', 'action=browse&selectedChild=tag'), FALSE); $controller->reset(); $controller->set('contactId', $this->_contactId); $controller->process(); $controller->run(); } function preProcess() { $this->_contactId = CRM_Utils_Request::retrieve('cid', 'Positive', $this, TRUE); $this->assign('contactId', $this->_contactId); // check logged in url permission CRM_Contact_Page_View::checkUserPermission($this); $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse'); $this->assign('action', $this->_action); } /** * This function is the main function that is called when the page loads * it decides the which action has to be taken for the page. * * return null * @access public */ function run() { $this->preProcess(); $this->browse(); return parent::run(); } }