From 3440aad4b7d4122f811da5a2497fb3ba27497e28 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 30 Jan 2015 11:30:55 -0500 Subject: [PATCH 1/1] First commit. --- .gitignore | 1 + README.md | 5 +++++ librejslinks.info | 3 +++ librejslinks.module | 28 ++++++++++++++++++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 librejslinks.info create mode 100644 librejslinks.module diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/README.md b/README.md new file mode 100644 index 0000000..8946a93 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +LibreJS Links +============= + +A simple Drupal module that adds a block which displays the links to +the weblabels table for LibreJS compliance. diff --git a/librejslinks.info b/librejslinks.info new file mode 100644 index 0000000..c3a460f --- /dev/null +++ b/librejslinks.info @@ -0,0 +1,3 @@ +name = LibreJS Links +description = A block to provide the weblabels table for LibreJS compliance. +core = 7.x \ No newline at end of file diff --git a/librejslinks.module b/librejslinks.module new file mode 100644 index 0000000..b683e6f --- /dev/null +++ b/librejslinks.module @@ -0,0 +1,28 @@ + array( + 'info' => t('LibreJS Links'), + 'cache' => DRUPAL_NO_CACHE // DRUPAL_CACHE_GLOBAL + ); + ); +} + +/** + * Custom block view. + * + * Populates our block with the links to our weblabels table. + */ +function librejslinks_block_view($delta='') { + return array( + 'content' => '
JavaScript license information
'; + ); +} -- 2.25.1