<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
*
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2015
- * $Id$
- *
*/
/**
- * This class is for building event(participation) block on user dashboard
+ * This class is for building event(participation) block on user dashboard.
*/
class CRM_Activity_Page_UserDashboard extends CRM_Contact_Page_View_UserDashBoard {
$controller->reset();
$controller->set('context', 'user');
$controller->set('cid', $this->_contactId);
- $controller->set('status', array(1 => 'on', 7 => 'on'));
+ // Limit to status "Scheduled" and "Available"
+ $controller->set('status', array('IN' => array(1, 7)));
$controller->set('activity_role', 2);
$controller->set('force', 1);
$controller->process();
}
/**
- * the main function that is called when the page
- * loads, it decides the which action has to be taken for the page.
+ * The main function that is called when the page loads.
*
- * @return void
+ * It decides the which action has to be taken for the page.
*/
public function run() {
parent::preProcess();