root/trunk/extensions/ldap/ldap_extension.rb

Revision 406, 502 bytes (checked in by jlong, 1 year ago)

merged extensions over from the mental branch into head

Line 
1 class LdapExtension < Radiant::Extension
2   version "0.1"
3   description "Accesses LDAP directory and allows saved queries."
4   url "http://dev.radiantcms.org/svn/radiant/branches/mental/extensions/ldap"
5
6   define_routes do |map|
7     map.connect 'admin/ldap/:action/:id', :controller => 'ldap'
8   end
9  
10   def activate
11     admin.tabs.add "LDAP", "/admin/ldap", :after => "Layouts", :visibility => [:all]
12     Page.send :include, LdapTags
13   end
14  
15   def deactivate
16     admin.tabs.remove "LDAP"
17   end
18    
19 end
Note: See TracBrowser for help on using the browser.