<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
$this->add('text', 'label', ts('Label'), $attributes['label'], TRUE);
- $classes = array();
- foreach (array(
- 'Positive', 'Pending', 'Waiting', 'Negative') as $class) {
- $classes[$class] = CRM_Event_DAO_ParticipantStatusType::tsEnum('class', $class);
- }
+ $classes = array(
+ 'Positive' => ts('Positive'),
+ 'Pending' => ts('Pending'),
+ 'Waiting' => ts('Waiting'),
+ 'Negative' => ts('Negative'),
+ );
+
$this->add('select', 'class', ts('Class'), $classes, TRUE);
$this->add('checkbox', 'is_active', ts('Active?'));