Project

General

Profile

Actions

Feature #14614

closed

View hooks for user preferences

Added by Tide _ over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Plugin API
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

I need two new view hooks for my plugin.

1. app/views/my/account.html.erb lines 39-43

<fieldset class="box tabular">
<legend><%=l(:label_preferences)%></legend>
<%= render :partial => 'users/preferences' %>
<%= call_hook(:view_my_account_right_bottom, :user => @user, :form => f) %>
</fieldset>

2. app/views/users/_form.html.erb lines 45-49

<fieldset class="box tabular">
<legend><%=l(:label_preferences)%></legend>
<%= render :partial => 'users/preferences' %>
<%= call_hook(:view_users_form_right_bottom, :user => @user, :form => f) %>
</fieldset>

This will allow people to add settings under the "Preferences" section for each of these pages. Currently you can only add setting to or after the Information section. My plugins setting is more of a preference than information.

Actions

Also available in: Atom PDF