Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a180488845
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (15 sloc) 0.558 kb
class DatabaseFormExtension < Radiant::Extension
version "0.2.1"
description "Provides a page type for email contact and request forms and saves requests to a database (modified Mailer)."
url "http://github.com/zapnap/database_form"
define_routes do |map|
map.connect 'admin/form_responses/:action/:id', :controller => 'admin/form_responses'
end
def activate
admin.tabs.add "Form Responses", "/admin/form_responses", :before => "Layouts"
DatabaseFormPage
end
def deactivate
admin.tabs.remove "Form Responses"
end
end
Jump to Line
Something went wrong with that request. Please try again.