From b0a20581e4ddd91355e18ed742a846eabf9997f4 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 3 Nov 2014 12:33:23 -0500 Subject: [PATCH 1/1] Initial commit. --- README.md | 5 +++++ agpl_compliance.info | 3 +++ agpl_compliance.module | 22 ++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 README.md create mode 100644 agpl_compliance.info create mode 100644 agpl_compliance.module diff --git a/README.md b/README.md new file mode 100644 index 0000000..5a455c1 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +FSF CiviCRM AGPL Compliance +=========================== + +This module adds a block that shows a link to download the complete +source code to our modified version of CiviCRM. diff --git a/agpl_compliance.info b/agpl_compliance.info new file mode 100644 index 0000000..b37e2fc --- /dev/null +++ b/agpl_compliance.info @@ -0,0 +1,3 @@ +name = AGPL Compliance +description = A block to provide source code download links for AGPL compliance. +core = 7.x \ No newline at end of file diff --git a/agpl_compliance.module b/agpl_compliance.module new file mode 100644 index 0000000..a6d48ca --- /dev/null +++ b/agpl_compliance.module @@ -0,0 +1,22 @@ + t('AGPL Compliance'), + ); + return $retval; +} + +function agpl_compliance_block_view($delta='') { + switch($delta) { + case 'agpl_compliance': + $block['content'] = '

This version of CiviCRM contains modifications made by the Free Software Foundation, Inc. Complete source code

'; + return $block; + } +} + +?> \ No newline at end of file -- 2.25.1