Ported plugin hooks to the final Redmine Plugin hook API. #1431
This commit is contained in:
@@ -6,6 +6,7 @@ require_dependency 'query_patch'
|
||||
|
||||
# Hooks
|
||||
require_dependency 'budget_issue_hook'
|
||||
require_dependency 'budget_project_hook'
|
||||
|
||||
RAILS_DEFAULT_LOGGER.info 'Starting Budget plugin for RedMine'
|
||||
|
||||
@@ -28,14 +29,4 @@ Redmine::Plugin.register :budget_plugin do
|
||||
end
|
||||
|
||||
menu :project_menu, :budget, :controller => "deliverables", :action => 'index'
|
||||
|
||||
add_hook(:issue_show, Proc.new { |context| BudgetIssueHook.issue_show(context) })
|
||||
add_hook(:issue_edit, Proc.new { |context| BudgetIssueHook.issue_edit(context) })
|
||||
add_hook(:issue_bulk_edit, Proc.new { |context| BudgetIssueHook.issue_bulk_edit(context) })
|
||||
add_hook(:issue_bulk_edit_save, Proc.new { |context| BudgetIssueHook.issue_bulk_edit_save(context) })
|
||||
|
||||
add_hook(:project_member_list_header, Proc.new { |context| BudgetProjectHook.member_list_header(context) })
|
||||
add_hook(:project_member_list_column_three, Proc.new { |context| BudgetProjectHook.member_list_column_three(context) })
|
||||
|
||||
add_hook(:issues_helper_show_details, Proc.new { |context| BudgetIssueHook.issue_helper_show_details(context) })
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user