Changed Hook API to use a Manager class. #1296

This commit is contained in:
Eric Davis
2008-07-23 21:01:43 -07:00
parent fe22ef95a8
commit 04434cd6ef
7 changed files with 49 additions and 55 deletions
+2 -6
View File
@@ -9,9 +9,7 @@
<thead>
<th><%= l(:label_user) %></th>
<th><%= l(:label_role) %></th>
<% if Redmine::Plugin::Hook.hook_registered?(:project_member_list_header) %>
<%= Redmine::Plugin::Hook.call_hook(:project_member_list_header, {:project => @project }) %>
<% end %>
<%= Redmine::Plugin::Hook::Manager.call_hook(:project_member_list_header, {:project => @project }) %>
<th style="width:15%"></th>
</thead>
<tbody>
@@ -27,9 +25,7 @@
<% end %>
<% end %>
</td>
<% if Redmine::Plugin::Hook.hook_registered?(:project_member_list_column_three) %>
<%= Redmine::Plugin::Hook.call_hook(:project_member_list_column_three, {:project => @project, :member => member }) %>
<% end %>
<%= Redmine::Plugin::Hook::Manager.call_hook(:project_member_list_column_three, {:project => @project, :member => member }) %>
<td align="center">
<%= link_to_remote l(:button_delete), { :url => {:controller => 'members', :action => 'destroy', :id => member},