summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-08-05 18:29:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-08-05 18:29:29 +0000
commit936ef250b4ca91caec1e2a351017debd85813648 (patch)
tree4dbb7542fda32d888b5365b014c544355bbe60a6 /app
parentcb90cdcc150ca607f38ba1fca4428d08b6fc0791 (diff)
downloadredmine-936ef250b4ca91caec1e2a351017debd85813648.tar.gz
redmine-936ef250b4ca91caec1e2a351017debd85813648.zip
Add hooks for user preferences (#14614).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12085 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/my/account.html.erb1
-rw-r--r--app/views/users/_form.html.erb1
2 files changed, 2 insertions, 0 deletions
diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb
index 47e945949..8ec3a8dc9 100644
--- a/app/views/my/account.html.erb
+++ b/app/views/my/account.html.erb
@@ -39,6 +39,7 @@
<fieldset class="box tabular">
<legend><%=l(:label_preferences)%></legend>
<%= render :partial => 'users/preferences' %>
+ <%= call_hook(:view_my_account_preferences, :user => @user, :form => f) %>
</fieldset>
</div>
diff --git a/app/views/users/_form.html.erb b/app/views/users/_form.html.erb
index bb762c1ee..e90095827 100644
--- a/app/views/users/_form.html.erb
+++ b/app/views/users/_form.html.erb
@@ -46,6 +46,7 @@
<fieldset class="box tabular">
<legend><%=l(:label_preferences)%></legend>
<%= render :partial => 'users/preferences' %>
+ <%= call_hook(:view_users_form_preferences, :user => @user, :form => f) %>
</fieldset>
</div>
</div>