name = 'participant_status'; $dao->find(TRUE); $this->set('ufGroupId', $dao->id); $statuses = CRM_Event_PseudoConstant::participantStatus(NULL, NULL, 'label'); asort($statuses, SORT_STRING); $this->add('select', 'status_change', ts('Change All Statuses'), array( '' => ts('- select status -')) + $statuses ); $this->assign('context', 'statusChange'); # CRM-4321: display info on users being notified if any of the below statuses is enabled $notifyingStatuses = array('Pending from waitlist', 'Pending from approval', 'Expired', 'Cancelled'); $notifyingStatuses = array_intersect($notifyingStatuses, CRM_Event_PseudoConstant::participantStatus()); $this->assign('notifyingStatuses', implode(', ', $notifyingStatuses)); parent::buildQuickForm(); } }