diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2009-05-30 22:43:01 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2009-05-30 22:43:01 +0000 |
commit | 4ba83085072d69451149896002958c6ab479b0c8 (patch) | |
tree | 3ac8a01ba692640cc9180f1ec744d8090f3d665b /app/controllers/messages_controller.rb | |
parent | ea7ff8dd76c4491c43acccbf66216c2d76d48447 (diff) | |
download | redmine-4ba83085072d69451149896002958c6ab479b0c8.tar.gz redmine-4ba83085072d69451149896002958c6ab479b0c8.zip |
Added more plugin hooks:
* :controller_messages_new_after_save
* :controller_messages_reply_after_save
* :controller_wiki_edit_after_save
#3306
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2774 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/messages_controller.rb')
-rw-r--r-- | app/controllers/messages_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index 9a7c34c37..f328e9b60 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -46,6 +46,7 @@ class MessagesController < ApplicationController @message.sticky = params[:message]['sticky'] end if request.post? && @message.save + call_hook(:controller_messages_new_after_save, { :params => params, :message => @message}) attach_files(@message, params[:attachments]) redirect_to :action => 'show', :id => @message end @@ -58,6 +59,7 @@ class MessagesController < ApplicationController @reply.board = @board @topic.children << @reply if !@reply.new_record? + call_hook(:controller_messages_reply_after_save, { :params => params, :message => @reply}) attach_files(@reply, params[:attachments]) end redirect_to :action => 'show', :id => @topic |