Print all certificates
1 unresolved thread
1 unresolved thread
- We’ve created two permissions:
- Print all Certificates
- Print Own Certificate (keeps checking id match and attended status)
- We’ve created a searchTask to allow printing multiple certificates from participant search. That task checks “Print all Certificates” permission and redirects to a class that currently just downloads certificates but that could be modified, for instance, in order to show a form to allow users to choose one of several templates in case none is defined in settings.
- Context is now a two-dimensional array, given that now the extension would allow to download several certificates at once.
Merge request reports
Activity
45 'is_single_mode' => TRUE, 46 'title_single_mode' => E::ts('Print Certificate'), 47 'name' => E::ts('Print Certificate'), 48 'key' => 'move', 49 'weight' => 130, 50 ]; 51 } 52 } 53 54 /** 55 * Define Certificates permissions 56 */ 57 function certificates_civicrm_permission(&$permissions) { 58 $prefix = 'Certificates: '; 59 $permissions['download participant certificates'] = $prefix . ts('Print all Certificates'); 60 $permissions['download own certificate'] = $prefix . ts('Print own Certificate'); - Comment on lines +59 to +60
This needs to use the "newer" array format - see https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_permission/#parameters
changed this line in version 2 of the diff
mentioned in commit e762b4a2
Please register or sign in to reply