groups/modules/groups/groups_reports/groups_reports.admin.inc
Marton Kiss 72005bde95 Token based access for organizer contact report
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
2016-07-22 12:24:05 +02:00

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);
}