diff --git a/README.txt b/README.txt new file mode 100644 index 0000000000000000000000000000000000000000..4c749c065b575c61581c3ec4b79f83ea8b31759a --- /dev/null +++ b/README.txt @@ -0,0 +1,4 @@ +Garlic.js +========= + +Adds the garlic.js library to Drupal. Garlic lets you use your browser's local storage to save the state of a webform between page loads and accidental window closing. \ No newline at end of file diff --git a/garlic.info b/garlic.info index f17b7f299d1a5e5939e589b56670f75a0503843f..81581d990db3caffefd9351d27324a5578ce07af 100644 --- a/garlic.info +++ b/garlic.info @@ -1 +1,4 @@ name = Garlic +description = Adds the garlic.js library and allows you to add it to selected entity forms + +dependencies[] = libraries (2.x) \ No newline at end of file diff --git a/garlic.module b/garlic.module new file mode 100644 index 0000000000000000000000000000000000000000..cc60cfbb8e98d3da42a3752b83dbe244faf0d941 --- /dev/null +++ b/garlic.module @@ -0,0 +1,46 @@ + "Garlic.js", + 'vendor url' => 'http://garlicjs.org/', + 'download url' => 'http://garlicjs.org/', + 'path' => 'garlic', + 'version arguments' => array( + 'file' => 'dist/garlic.min.js', + 'pattern' => '/(\d+\.\d+\.\d+)/', + 'lines' => 1, + ), + 'files' => array( + 'js' => array( + 'dist/garlic.min.js' + ) + ), + 'variants' => array( + 'minified' => array( + 'files' => array( + 'js' => array( + 'dist/garlic.min.js' + ), + ), + ), + 'source' => array( + 'files' => array( + 'js' => array( + 'garlic.js' + ), + ), + ), + ), + ); + return $libraries; +}