Task.php - code cleanup
authorColeman Watts <coleman@civicrm.org>
Fri, 10 Jan 2014 00:34:40 +0000 (16:34 -0800)
committerColeman Watts <coleman@civicrm.org>
Fri, 24 Jan 2014 06:24:07 +0000 (22:24 -0800)
CRM/Activity/Task.php
CRM/Campaign/Task.php
CRM/Case/Task.php
CRM/Contribute/Task.php
CRM/Event/Task.php
CRM/Grant/Task.php
CRM/Mailing/Task.php
CRM/Member/Task.php
CRM/Pledge/Task.php

index c26fc4c16bc9fa0894ed14cc8097034a7c116433..fc4b395673eb37682da52127eb14dedfc2a11166 100644 (file)
@@ -73,36 +73,42 @@ class CRM_Activity_Task {
   static function &tasks() {
     if (!(self::$_tasks)) {
       self::$_tasks = array(
-        1 => array('title' => ts('Delete Activities'),
+        1 => array(
+          'title' => ts('Delete Activities'),
           'class' => 'CRM_Activity_Form_Task_Delete',
           'result' => FALSE,
         ),
-        2 => array('title' => ts('Print Selected Rows'),
+        2 => array(
+          'title' => ts('Print Selected Rows'),
           'class' => 'CRM_Activity_Form_Task_Print',
           'result' => FALSE,
         ),
-        3 => array('title' => ts('Export Activities'),
+        3 => array(
+          'title' => ts('Export Activities'),
           'class' => array(
             'CRM_Export_Form_Select',
             'CRM_Export_Form_Map',
           ),
           'result' => FALSE,
         ),
-        4 => array('title' => ts('Batch Update Activities Via Profile'),
+        4 => array(
+          'title' => ts('Batch Update Activities Via Profile'),
           'class' => array(
             'CRM_Activity_Form_Task_PickProfile',
             'CRM_Activity_Form_Task_Batch',
           ),
           'result' => FALSE,
         ),
-        5 => array('title' => ts('Send Email to Contacts'),
+        5 => array(
+          'title' => ts('Send Email to Contacts'),
           'class' => array(
             'CRM_Activity_Form_Task_PickOption',
             'CRM_Activity_Form_Task_Email',
           ),
           'result' => FALSE,
         ),
-        6 => array('title' => ts('Send Reply SMS To Contacts'),
+        6 => array(
+          'title' => ts('Send Reply SMS To Contacts'),
           'class' => 'CRM_Activity_Form_Task_SMS',
           'result' => FALSE,
         ),
@@ -122,7 +128,8 @@ class CRM_Activity_Task {
       if (in_array('CiviCase', $config->enableComponents)) {
         if ( CRM_Core_Permission::check('access all cases and activities') ||
           CRM_Core_Permission::check('access my cases and activities') ) {
-          self::$_tasks[6] = array('title' => ts('File on Case'),
+          self::$_tasks[6] = array(
+            'title' => ts('File on Case'),
             'class' => 'CRM_Activity_Form_Task_FileOnCase',
             'result' => FALSE,
           );
index 4e78a38980be520078e2c90317b8b4d8dda59b31..b9a9ae919325746424a3b3a087fbd81fb7ac0a3c 100755 (executable)
@@ -68,14 +68,16 @@ class CRM_Campaign_Task {
    */
   static function &tasks() {
     if (!(self::$_tasks)) {
-      self::$_tasks = array(1 => array('title' => ts('Record Respondents Interview'),
+      self::$_tasks = array(1 => array(
+        'title' => ts('Record Respondents Interview'),
           'class' => array(
             'CRM_Campaign_Form_Task_Interview',
             'CRM_Campaign_Form_Task_Release',
           ),
           'result' => FALSE,
         ),
-        2 => array('title' => ts('Reserve Respondents'),
+        2 => array(
+          'title' => ts('Reserve Respondents'),
           'class' => array(
             'CRM_Campaign_Form_Task_Reserve',
             'CRM_Campaign_Form_Task_Interview',
@@ -83,11 +85,13 @@ class CRM_Campaign_Task {
           ),
           'result' => FALSE,
         ),
-        3 => array('title' => ts('Release Respondents'),
+        3 => array(
+          'title' => ts('Release Respondents'),
           'class' => 'CRM_Campaign_Form_Task_Release',
           'result' => FALSE,
         ),
-        4 => array('title' => ts('Print Respondents'),
+        4 => array(
+          'title' => ts('Print Respondents'),
           'class' => 'CRM_Campaign_Form_Task_Print',
           'result' => FALSE,
         ),
index a455910e5e00e82854f6e9ea586dc69942ee6e7c..02a61634fa7ce73064f38bc07eefeabaaa82eea0 100644 (file)
@@ -68,22 +68,26 @@ class CRM_Case_Task {
   static function &tasks() {
     if (!self::$_tasks) {
       self::$_tasks = array(
-        1 => array('title' => ts('Delete Cases'),
+        1 => array(
+          'title' => ts('Delete Cases'),
           'class' => 'CRM_Case_Form_Task_Delete',
           'result' => FALSE,
         ),
-        2 => array('title' => ts('Print Selected Rows'),
+        2 => array(
+          'title' => ts('Print Selected Rows'),
           'class' => 'CRM_Case_Form_Task_Print',
           'result' => FALSE,
         ),
-        3 => array('title' => ts('Export Cases'),
+        3 => array(
+          'title' => ts('Export Cases'),
           'class' => array(
             'CRM_Export_Form_Select',
             'CRM_Export_Form_Map',
           ),
           'result' => FALSE,
         ),
-        4 => array('title' => ts('Restore Cases'),
+        4 => array(
+          'title' => ts('Restore Cases'),
           'class' => 'CRM_Case_Form_Task_Restore',
           'result' => FALSE,
         ),
index 7b7c23164ceb1ea617fd44ba6de67f180e9be019..57526b738f9231b62f8bc47a9929b761ba263dbb 100644 (file)
@@ -68,41 +68,49 @@ class CRM_Contribute_Task {
   static function &tasks() {
     if (!(self::$_tasks)) {
       self::$_tasks = array(
-        1 => array('title' => ts('Delete Contributions'),
+        1 => array(
+          'title' => ts('Delete Contributions'),
           'class' => 'CRM_Contribute_Form_Task_Delete',
           'result' => FALSE,
         ),
-        2 => array('title' => ts('Print Selected Rows'),
+        2 => array(
+          'title' => ts('Print Selected Rows'),
           'class' => 'CRM_Contribute_Form_Task_Print',
           'result' => FALSE,
         ),
-        3 => array('title' => ts('Export Contributions'),
+        3 => array(
+          'title' => ts('Export Contributions'),
           'class' => array(
             'CRM_Export_Form_Select',
             'CRM_Export_Form_Map',
           ),
           'result' => FALSE,
         ),
-        4 => array('title' => ts('Batch Update Contributions Via Profile'),
+        4 => array(
+          'title' => ts('Batch Update Contributions Via Profile'),
           'class' => array(
             'CRM_Contribute_Form_Task_PickProfile',
             'CRM_Contribute_Form_Task_Batch',
           ),
           'result' => TRUE,
         ),
-        5 => array('title' => ts('Send Email to Contacts'),
+        5 => array(
+          'title' => ts('Send Email to Contacts'),
           'class' => 'CRM_Contribute_Form_Task_Email',
           'result' => TRUE,
         ),
-        6 => array('title' => ts('Update Pending Contribution Status'),
+        6 => array(
+          'title' => ts('Update Pending Contribution Status'),
           'class' => 'CRM_Contribute_Form_Task_Status',
           'result' => TRUE,
         ),
-        7 => array('title' => ts('Print or Email Contribution Receipts'),
+        7 => array(
+          'title' => ts('Print or Email Contribution Receipts'),
           'class' => 'CRM_Contribute_Form_Task_PDF',
           'result' => FALSE,
         ),
-        8 => array('title' => ts('Thank-you Letters for Contributions'),
+        8 => array(
+          'title' => ts('Thank-you Letters for Contributions'),
           'class' => 'CRM_Contribute_Form_Task_PDFLetter',
           'result' => FALSE,
         ),
index 447ac2238b959201aad1332468c8a9fa4a6b0efd..5b40379a5fc949080ade66a36dcdfcae473acac8 100644 (file)
@@ -71,49 +71,59 @@ class CRM_Event_Task {
    */
   static function &tasks() {
     if (!(self::$_tasks)) {
-      self::$_tasks = array(1 => 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 Selected Rows'),
+        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,
         ),
index 551199aae589a7d1ffc7123355a48e049dbcf8de..a37d65edf11afbe59b6e1fda650859b080429752 100644 (file)
@@ -67,22 +67,26 @@ class CRM_Grant_Task {
    */
   static function &tasks() {
     if (!(self::$_tasks)) {
-      self::$_tasks = array(1 => array('title' => ts('Delete Grants'),
+      self::$_tasks = array(1 => array(
+        'title' => ts('Delete Grants'),
           'class' => 'CRM_Grant_Form_Task_Delete',
           'result' => FALSE,
         ),
-        2 => array('title' => ts('Print Selected Rows'),
+        2 => array(
+          'title' => ts('Print Selected Rows'),
           'class' => 'CRM_Grant_Form_Task_Print',
           'result' => FALSE,
         ),
-        3 => array('title' => ts('Export Grants'),
+        3 => array(
+          'title' => ts('Export Grants'),
           'class' => array(
             'CRM_Export_Form_Select',
             'CRM_Export_Form_Map',
           ),
           'result' => FALSE,
         ),
-        4 => array('title' => ts('Update Grants'),
+        4 => array(
+          'title' => ts('Update Grants'),
           'class' => 'CRM_Grant_Form_Task_Update',
           'result' => FALSE,
         ),
index 1ff5f827acc63794163dc86f18b385f449c732c0..e6d6ed46006a757327cc0148352901981acf6a55 100644 (file)
@@ -66,7 +66,8 @@ class CRM_Mailing_Task {
   static function &tasks() {
     if (!(self::$_tasks)) {
       self::$_tasks = array(
-        1 => array('title' => ts('Print Mailing Recipients'),
+        1 => array(
+          'title' => ts('Print Mailing Recipients'),
           'class' => 'CRM_Mailing_Form_Task_Print',
           'result' => FALSE,
         ),
index 0e0ef5ab2309c9070d402f9fc35d9e046eeb8328..0de7fcf08f4eb6557d23e5cbc701a07fa68fc60c 100644 (file)
@@ -69,39 +69,46 @@ class CRM_Member_Task {
   static function &tasks() {
     if (!(self::$_tasks)) {
       self::$_tasks = array(
-        1 => array('title' => ts('Delete Members'),
+        1 => array(
+          'title' => ts('Delete Members'),
           'class' => 'CRM_Member_Form_Task_Delete',
           'result' => FALSE,
         ),
-        2 => array('title' => ts('Print Selected Rows'),
+        2 => array(
+          'title' => ts('Print Selected Rows'),
           'class' => 'CRM_Member_Form_Task_Print',
           'result' => FALSE,
         ),
-        3 => array('title' => ts('Export Members'),
+        3 => array(
+          'title' => ts('Export Members'),
           'class' => array(
             'CRM_Export_Form_Select',
             'CRM_Export_Form_Map',
           ),
           'result' => FALSE,
         ),
-        4 => array('title' => ts('Send Email to Contacts'),
+        4 => array(
+          'title' => ts('Send Email to Contacts'),
           'class' => 'CRM_Member_Form_Task_Email',
           'result' => TRUE,
         ),
-        5 => array('title' => ts('Batch Update Members Via Profile'),
+        5 => array(
+          'title' => ts('Batch Update Members Via Profile'),
           'class' => array(
             'CRM_Member_Form_Task_PickProfile',
             'CRM_Member_Form_Task_Batch',
           ),
           'result' => TRUE,
         ),
-        6 => array('title' => ts('Mailing Labels'),
+        6 => array(
+          'title' => ts('Mailing Labels'),
           'class' => array(
             'CRM_Member_Form_Task_Label',
           ),
           'result' => TRUE,
         ),
-        7 => array('title' => ts('Print PDF Letters for Memberships'),
+        7 => array(
+          'title' => ts('Print PDF Letters for Memberships'),
           'class' => 'CRM_Member_Form_Task_PDFLetter',
           'result' => FALSE,
         ),
index 65e72f20865978e5b031ba292b6b435b64ed500b..6434ca80e231f16090443cc8a5f06fc9b746da60 100644 (file)
@@ -67,15 +67,18 @@ class CRM_Pledge_Task {
    */
   static function &tasks() {
     if (!self::$_tasks) {
-      self::$_tasks = array(1 => array('title' => ts('Delete Pledges'),
+      self::$_tasks = array(1 => array(
+        'title' => ts('Delete Pledges'),
           'class' => 'CRM_Pledge_Form_Task_Delete',
           'result' => FALSE,
         ),
-        2 => array('title' => ts('Print Selected Rows'),
+        2 => array(
+          'title' => ts('Print Selected Rows'),
           'class' => 'CRM_Pledge_Form_Task_Print',
           'result' => FALSE,
         ),
-        3 => array('title' => ts('Export Pledges'),
+        3 => array(
+          'title' => ts('Export Pledges'),
           'class' => array(
             'CRM_Export_Form_Select',
             'CRM_Export_Form_Map',