Hooks List » History » Version 19

Mischa The Evil, 2013-02-06 04:00
Added red-box note about removal of the hook_list rake task on Redmine 2.x.x.

1 16 Mischa The Evil
h1. Redmine plugin hooks list
2 1 Jean-Philippe Lang
3 13 Mischa The Evil
{{>toc}}
4 2 Eric Davis
5 13 Mischa The Evil
To see the current list of plugin hooks, run @rake redmine:plugins:hook_list@ in the Redmine directory.
6 1 Jean-Philippe Lang
7 19 Mischa The Evil
|{background-color:#f88}. On Redmine version#43 and up the rake task has been deprecated.
8 19 Mischa The Evil
As an alternative you can use @grep -r call_hook *@ in the Redmine directory (see message#36062).|
9 19 Mischa The Evil
10 14 Mischa The Evil
h2. Controller hooks
11 14 Mischa The Evil
12 14 Mischa The Evil
table{width:100%}.
13 14 Mischa The Evil
|_. Name|_. Description|_. Context|
14 14 Mischa The Evil
|@:controller_account_success_authentication_after@| |@:user@|
15 14 Mischa The Evil
|@:controller_custom_fields_new_after_save@| |@:params, :custom_field@|
16 14 Mischa The Evil
|@:controller_custom_fields_edit_after_save@| |@:params, :custom_field@|
17 14 Mischa The Evil
|@: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@|
18 15 Jie Ma
|@:controller_issues_new_before_save@| |@:params, :issue@|
19 14 Mischa The Evil
|@:controller_issues_new_after_save@| |@:params, :issue@|
20 14 Mischa The Evil
|@:controller_issues_edit_before_save@| |@:params, :issue, :time_entry, :journal@|
21 14 Mischa The Evil
|@:controller_issues_edit_after_save@| |@:params, :issue, :time_entry, :journal@|
22 15 Jie Ma
|@:controller_issues_move_before_save@| |@:params, :issue, :copy, :target_project@|
23 14 Mischa The Evil
|@:controller_journals_edit_post@| |@:params, :journal@|
24 14 Mischa The Evil
|@:controller_messages_new_after_save@| |@:params, :message@|
25 14 Mischa The Evil
|@:controller_messages_reply_after_save@| |@:params, :message@|
26 14 Mischa The Evil
|@:controller_timelog_edit_before_save@| |@:params, :time_entry@|
27 14 Mischa The Evil
|@:controller_wiki_edit_after_save@| |@:params, :page@|
28 14 Mischa The Evil
29 14 Mischa The Evil
h2. Helper hooks
30 14 Mischa The Evil
31 14 Mischa The Evil
table{width:100%}.
32 14 Mischa The Evil
|_. Name|_. Description|_. Context|
33 14 Mischa The Evil
|@: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@|
34 14 Mischa The Evil
35 14 Mischa The Evil
h2. Model hooks
36 14 Mischa The Evil
37 14 Mischa The Evil
table{width:100%}.
38 14 Mischa The Evil
|_. Name|_. Description|_. Context|
39 14 Mischa The Evil
|@:model_changeset_scan_commit_for_issue_ids_pre_issue_update@| |@:changeset, :issue@|
40 14 Mischa The Evil
|@:model_project_copy_before_save@| |@:source_project, :destination_project@|
41 14 Mischa The Evil
42 13 Mischa The Evil
h2. View hooks
43 1 Jean-Philippe Lang
44 13 Mischa The Evil
The current project is accessible using the @:project@ key of the context for all the view hooks.
45 13 Mischa The Evil
46 3 Eric Davis
table{width:100%}.
47 1 Jean-Philippe Lang
|_. Name|_. Description|_. Context|
48 14 Mischa The Evil
|@:view_account_left_bottom@| |@:user@|
49 14 Mischa The Evil
|@:view_account_right_bottom@| |@:user@|
50 15 Jie Ma
|@:view_account_login_top@| |(none)|
51 15 Jie Ma
|@:view_account_login_bottom@| |(none)|
52 11 Mischa The Evil
|@:view_custom_fields_form_upper_box@| |@:custom_field, :form@|
53 11 Mischa The Evil
|@:"view_custom_fields_form_#{@custom_field.type.to_s.underscore}"@| |@:custom_field, :form@|
54 11 Mischa The Evil
|@:view_issue_statuses_form@| |@:issue_status@|
55 11 Mischa The Evil
|@:view_issues_bulk_edit_details_bottom@|Appends content to the bulk edit form before the note|@:issues@|
56 18 Alexandr Ivanov
|@:view_issues_edit_notes_bottom@|Appends content to the note bottom before files form|@:issue, :notes, :form@|
57 1 Jean-Philippe Lang
|@:view_issues_form_details_bottom@|Appends content to the html table at the bottom of the issue form|@:issue, :form@|
58 12 Mischa The Evil
|@:view_issues_history_journal_bottom@| |@:journal@|
59 12 Mischa The Evil
|@:view_issues_show_details_bottom@|Appends content to the bottom of the issues details table|@:issue@|
60 1 Jean-Philippe Lang
|@:view_issues_sidebar_issues_bottom@| |(none)|
61 11 Mischa The Evil
|@:view_issues_sidebar_planning_bottom@| |(none)|
62 1 Jean-Philippe Lang
|@:view_issues_sidebar_queries_bottom@| |(none)|
63 11 Mischa The Evil
|@:view_issues_context_menu_start@| |@:issues, :can, :back@|
64 12 Mischa The Evil
|@:view_issues_context_menu_end@| |@:issues, :can, :back@|
65 17 Etienne Massip
|@:view_issues_new_top@| |@:issue@|
66 12 Mischa The Evil
|@:view_issues_show_description_bottom@| |@:issue@|
67 15 Jie Ma
|@:view_issues_move_bottom@| |@:issue, :target_project, :copy@|
68 2 Eric Davis
|@:view_journals_notes_form_after_notes@| |@:journal@|
69 13 Mischa The Evil
|@:view_journals_update_rjs_bottom@| |@:page, :journal@|
70 1 Jean-Philippe Lang
|@:view_layouts_base_body_bottom@|Appends content to the end of the body section of the base layout|(none)|
71 1 Jean-Philippe Lang
|@:view_layouts_base_content@| |(none)|
72 1 Jean-Philippe Lang
|@:view_layouts_base_html_head@|Appends content to the html head of the base layout|(none)|
73 11 Mischa The Evil
|@:view_layouts_base_sidebar@| |(none)|
74 11 Mischa The Evil
|@:view_my_account@| |@:user, :form@|
75 15 Jie Ma
|@:view_my_account_contextual@| |@:user@|
76 1 Jean-Philippe Lang
|@:view_projects_form@| |@:project, :form@|
77 13 Mischa The Evil
|@:view_projects_roadmap_version_bottom@| |@:version@|
78 11 Mischa The Evil
|@:view_projects_settings_members_table_header@|Appends content to the table header of a Project's Member setting|@:project@|
79 11 Mischa The Evil
|@:view_projects_settings_members_table_row@|Appends content to the table row of a Project's Member setting|@:member, :project@|
80 11 Mischa The Evil
|@:view_projects_show_left@| |@:project@|
81 1 Jean-Philippe Lang
|@:view_projects_show_right@| |@:project@|
82 15 Jie Ma
|@:view_projects_show_sidebar_bottom@| |@:project@|
83 2 Eric Davis
|@:view_repositories_show_contextual@|Appends content to the contextual menu in the Repositories pane|@:project, :repository@|
84 13 Mischa The Evil
|@:view_timelog_edit_form_bottom@| |@:time_entry, :form@|
85 15 Jie Ma
|@:view_settings_general_form@| |(none)|
86 15 Jie Ma
|@:view_users_memberships_table_header@| |@:user@|
87 15 Jie Ma
|@:view_users_memberships_table_row@| |@:user, :membership, :roles, :projects@|
88 2 Eric Davis
|@:view_users_form@| |@:user, :form@|
89 3 Eric Davis
|@:view_versions_show_bottom@| |@:version@|
90 14 Mischa The Evil
|@:view_versions_show_contextual@| |@:version, :project@|
91 2 Eric Davis
|@:view_welcome_index_left@| |@:project@|
92 2 Eric Davis
|@:view_welcome_index_right@| |@:project@|
93 7 Eric Davis
94 13 Mischa The Evil
h2. Other hooks
95 7 Eric Davis
96 7 Eric Davis
table{width:100%}.
97 7 Eric Davis
|_. Name|_. Description|_. Context|