From: David Thompson Date: Fri, 30 Jan 2015 16:30:55 +0000 (-0500) Subject: First commit. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;ds=inline;p=librejslinks.git First commit. --- 3440aad4b7d4122f811da5a2497fb3ba27497e28 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
'; + ); +}