setEmbedded(TRUE); $controller->reset(); $controller->set('context', 'user'); $controller->set('cid', $this->_contactId); $controller->set('status', array(1 => 'on', 7 => 'on')); $controller->set('activity_role', 2); $controller->set('force', 1); $controller->process(); $controller->run(); return; } /** * 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() { parent::preProcess(); $this->listActivities(); } }