X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FTask.php;h=ad3f9caad0f976ea50b0ca3b60616776caea0a36;hb=5f00d55fbd3a7533840a62ad99e92739f26cb236;hp=5ec703b638f0b0ed36123b25f407fa519c582671;hpb=8960f050bc875db30ec426da1c95a281e5d2bb50;p=civicrm-core.git diff --git a/CRM/Event/Task.php b/CRM/Event/Task.php index 5ec703b638..ad3f9caad0 100644 --- a/CRM/Event/Task.php +++ b/CRM/Event/Task.php @@ -1,9 +1,9 @@ array('title' => ts('Delete Participants'), + self::$_tasks = array(1 => array( + 'title' => ts('Delete Participants'), 'class' => 'CRM_Event_Form_Task_Delete', 'result' => FALSE, ), - 2 => array('title' => ts('Print Participants'), + 2 => array( + 'title' => ts('Print Selected Rows'), 'class' => 'CRM_Event_Form_Task_Print', 'result' => FALSE, ), - 3 => array('title' => ts('Export Participants'), + 3 => array( + 'title' => ts('Export Participants'), 'class' => array( 'CRM_Export_Form_Select', 'CRM_Export_Form_Map', ), 'result' => FALSE, ), - 4 => array('title' => ts('Batch Update Participants Via Profile'), + 4 => array( + 'title' => ts('Batch Update Participants Via Profile'), 'class' => array( 'CRM_Event_Form_Task_PickProfile', 'CRM_Event_Form_Task_Batch', ), 'result' => TRUE, ), - 5 => array('title' => ts('Cancel Registration'), + 5 => array( + 'title' => ts('Cancel Registration'), 'class' => 'CRM_Event_Form_Task_Cancel', 'result' => FALSE, ), - 6 => array('title' => ts('Send Email to Contacts'), + 6 => array( + 'title' => ts('Send Email to Contacts'), 'class' => 'CRM_Event_Form_Task_Email', 'result' => TRUE, ), - 13 => array('title' => ts('New Smart Group'), + 13 => array( + 'title' => ts('New Smart Group'), 'class' => 'CRM_Event_Form_Task_SaveSearch', 'result' => TRUE, ), - 14 => array('title' => ts('Update Smart Group'), + 14 => array( + 'title' => ts('Update Smart Group'), 'class' => 'CRM_Event_Form_Task_SaveSearch_Update', 'result' => TRUE, ), - 15 => array('title' => ts('Change Participant Status'), + 15 => array( + 'title' => ts('Change Participant Status'), 'class' => 'CRM_Event_Form_Task_ParticipantStatus', 'result' => TRUE, ), - 16 => array('title' => ts('Print Event Name Badges'), + 16 => array( + 'title' => ts('Print Event Name Badges'), 'class' => 'CRM_Event_Form_Task_Badge', 'result' => FALSE, ), @@ -142,14 +152,10 @@ class CRM_Event_Task { self::tasks(); $titles = array(); foreach (self::$_tasks as $id => $value) { - // skip Print Participants and Update Smart Group task - if (!in_array($id, array( - 2, 14))) { + // skip Update Smart Group task + if ($id != self::SAVE_SEARCH_UPDATE) { $titles[$id] = $value['title']; } - else { - continue; - } } return $titles; }