Permalink
Browse files

Added rdoc to the hook class

  • Loading branch information...
edavis10 committed Sep 30, 2008
1 parent bec3c4c commit 374716250d86087c71a42bf48bd07a927bf88f8f
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/google_analytics_hooks.rb
@@ -1,4 +1,9 @@
+# This class hooks into Redmine's View Listeners in order to
+# add content to the page
class GoogleAnalyticsHooks < Redmine::Hook::ViewListener
+
+ # Adds the Google Analytics code to the layout if the current user meets
+ # the conditions setup by the System Administrator
def view_layouts_base_body_bottom(context = { })
log_anon = Setting.plugin_google_analytics_plugin['google_analytics_log_anonymous']
log_auth = Setting.plugin_google_analytics_plugin['google_analytics_log_authenticated']

0 comments on commit 3747162

Please sign in to comment.