72005bde95
Provide a public token based access for the organizer contact report. Usage: https://<base-url>/reports/group-contact-report/csv?token=<token> The token must match the value stored in the groups_contact_report_key variable. The module also provides an admin inteface to set the token value at Configuration > System Settings > Groups report settings page. Change-Id: I8742ff26fd78e8baae6743d8ca15c92a13d86bdc
16 lines
429 B
PHP
16 lines
429 B
PHP
<?php
|
|
|
|
/**
|
|
* Menu callback: displays the groups_reports module settings page.
|
|
*
|
|
* @ingroup forms
|
|
*/
|
|
function groups_reports_admin_settings($form) {
|
|
$form['groups_contact_report_key'] = array(
|
|
'#type' => 'textfield',
|
|
'#title' => t('Organizer contact report token'),
|
|
'#default_value' => variable_get('groups_contact_report_key', 'dummytoken'),
|
|
'#required' => TRUE,
|
|
);
|
|
return system_settings_form($form);
|
|
} |