Initial commit. master
authorDavid Thompson <davet@gnu.org>
Mon, 3 Nov 2014 17:33:23 +0000 (12:33 -0500)
committerDavid Thompson <davet@gnu.org>
Mon, 3 Nov 2014 17:33:23 +0000 (12:33 -0500)
README.md [new file with mode: 0644]
agpl_compliance.info [new file with mode: 0644]
agpl_compliance.module [new file with mode: 0644]

diff --git a/README.md b/README.md
new file mode 100644 (file)
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 (file)
index 0000000..b37e2fc
--- /dev/null
@@ -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 (file)
index 0000000..a6d48ca
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+/**
+ * @file
+ * A block module that displays links to download source for AGPL compliance.
+ */
+
+function agpl_compliance_block_info() {
+  $retval['agpl_compliance'] = array(
+    'info' => t('AGPL Compliance'),
+  );
+  return $retval;
+}
+
+function agpl_compliance_block_view($delta='') {
+  switch($delta) {
+  case 'agpl_compliance':
+    $block['content'] = '<p>This version of CiviCRM contains modifications made by the Free Software Foundation, Inc. <a href="http://agpl.fsf.org/crm.fsf.org/CURRENT/">Complete source code</a></p>';
+    return $block;
+  }
+}
+
+?>
\ No newline at end of file