[tor-commits] [flashproxy/master] Add Drupal module by Brian Duggan.

dcf at torproject.org dcf at torproject.org
Thu Jul 19 16:16:12 UTC 2012


commit a39b1cb23e80d48152684b0da65eea7ed0811ed1
Author: David Fifield <david at bamsoftware.com>
Date:   Thu Jul 19 09:11:47 2012 -0700

    Add Drupal module by Brian Duggan.
    
    Brian did research and found out what files and syntax are needed for a
    Drupal 7 module. This module loads and runs the flash proxy program, but
    it doesn't put a badge on the page.
    
    The module originally had a copy of flashproxy.js with the only change
    being an additional line at the bottom to start the proxy running. I
    changed that into a symlink to the main flashproxy.js, and added a new
    flashproxy-start.js that calls the start method. I haven't tested these
    changes at all or even know if I have the syntax right.
---
 modules/drupal/flashproxy-start.js |    1 +
 modules/drupal/flashproxy.info     |    5 +++++
 modules/drupal/flashproxy.js       |    1 +
 modules/drupal/flashproxy.module   |    2 ++
 4 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/modules/drupal/flashproxy-start.js b/modules/drupal/flashproxy-start.js
new file mode 100644
index 0000000..fe7d10b
--- /dev/null
+++ b/modules/drupal/flashproxy-start.js
@@ -0,0 +1 @@
+flashproxy_badge_insert().start();
diff --git a/modules/drupal/flashproxy.info b/modules/drupal/flashproxy.info
new file mode 100644
index 0000000..2f9b174
--- /dev/null
+++ b/modules/drupal/flashproxy.info
@@ -0,0 +1,5 @@
+name = Flashproxy Module
+description = Insert Flashproxy js into some or all pages on your site.
+core = 7.x
+scripts[] = flashproxy.js
+scripts[] = flashproxy-start.js
diff --git a/modules/drupal/flashproxy.js b/modules/drupal/flashproxy.js
new file mode 120000
index 0000000..db0eda6
--- /dev/null
+++ b/modules/drupal/flashproxy.js
@@ -0,0 +1 @@
+../../flashproxy.js
\ No newline at end of file
diff --git a/modules/drupal/flashproxy.module b/modules/drupal/flashproxy.module
new file mode 100644
index 0000000..a4abe2d
--- /dev/null
+++ b/modules/drupal/flashproxy.module
@@ -0,0 +1,2 @@
+<?php
+



More information about the tor-commits mailing list