Project

General

Profile

Hooks List » History » Version 9

Eric Davis, 2008-10-25 06:18
Added :view_repositories_show_contextual hook

1 1 Jean-Philippe Lang
h1. Hooks
2
3 8 Eric Davis
To see the current list of hooks, run @rake redmine:plugins:hook_list@ in the Redmine directory.
4 2 Eric Davis
5 1 Jean-Philippe Lang
h2. Views
6
7
For views hooks, current project is accessible using @:project@ key of context.
8
9 3 Eric Davis
table{width:100%}.
10 1 Jean-Philippe Lang
|_. Name|_. Description|_. Context|
11 4 Eric Davis
|@:view_issues_form_details_bottom@|Appends content to the html table at the bottom of the issue form|@:issue, :form@|
12
|@:view_issues_bulk_edit_details_bottom@|Appends content to the bulk edit form before the note|@:issues@|
13
|@:view_issues_show_details_bottom@|Appends content to the bottom of the issues details table|@:issue@|
14 5 Eric Davis
|@:view_layouts_base_html_head@|Appends content to the html head of the base layout|(none)|
15 6 Eric Davis
|@:view_layouts_base_body_bottom@|Appends content to the end of the body section of the base layout|(none)|
16 5 Eric Davis
|@:view_projects_settings_members_table_header@|Appends content to the table header of a Project's Member setting|@:project@|
17
|@:view_projects_settings_members_table_row@|Appends content to the table row of a Project's Member setting|@:member, :project@|
18 9 Eric Davis
|@:view_repositories_show_contextual@|Appends content to the contextual menu in the Repositories pane|@:project, :repository@|
19 2 Eric Davis
20
h2. Controllers
21
22 3 Eric Davis
table{width:100%}.
23 2 Eric Davis
|_. Name|_. Description|_. Context|
24
|@:controller_issues_bulk_edit_before_save@|Passes the current issue and the params to the hook before saving.  This can be used to set attributes on the issues.| @:params, :issue@|
25
26
h2. Helpers
27
28 3 Eric Davis
table{width:100%}.
29 2 Eric Davis
|_. Name|_. Description|_. Context|
30
|@:helper_issues_show_detail_after_setting@|Passes data to the hook to allow it to set the label and value.|@:detail, :label, :value, :old_value@|
31 7 Eric Davis
32
h2. Other
33
34
table{width:100%}.
35
|_. Name|_. Description|_. Context|
36
|@:routes@|Passes Rail's router to the plugin to add or change routes in conjunction with Engines' routing.|@:map@|