add and remove labels for report role advmultiselect buttons
authorAndrew Hunt <andrew@aghstrategies.com>
Sun, 28 Apr 2013 19:14:45 +0000 (15:14 -0400)
committerAndrew Hunt <andrew@aghstrategies.com>
Sun, 28 Apr 2013 19:14:45 +0000 (15:14 -0400)
CRM/Report/Form/Instance.php

index e14b71fe5660cb02443f5343e8ca27d937220555..5e5b8965c011641d0718a3fef14f464fb22e5996 100644 (file)
@@ -121,7 +121,7 @@ class CRM_Report_Form_Instance {
         foreach ($user_roles_array as $key => $value) {
           $user_roles[$value] = $value;
         }
-        $form->addElement('advmultiselect',
+        $grouprole = &$form->addElement('advmultiselect',
           'grouprole',
           ts('ACL Group/Role'),
           $user_roles,
@@ -131,6 +131,8 @@ class CRM_Report_Form_Instance {
             'class' => 'advmultiselect',
           )
         );
+        $grouprole->setButtonAttributes('add', array('value' => ts('Add >>')));
+        $grouprole->setButtonAttributes('remove', array('value' => ts('<< Remove')));
       }
     }