From a3c3abffe5a964685d596a82261fde79b416107a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Thu, 4 Nov 2010 18:00:58 +0100 Subject: Bug 485418: Code and template hooks for userprefs.cgi to be able to add additional tabs r=mkanat a=LpSolit --- Bugzilla/Hook.pm | 43 ++++++++++++++++++++++ extensions/Example/Extension.pm | 20 ++++++++++ .../en/default/account/prefs/my_tab.html.tmpl | 30 +++++++++++++++ .../hook/account/prefs/prefs-tabs.html.tmpl | 23 ++++++++++++ template/en/default/account/prefs/prefs.html.tmpl | 2 + userprefs.cgi | 24 ++++++++---- 6 files changed, 135 insertions(+), 7 deletions(-) create mode 100644 extensions/Example/template/en/default/account/prefs/my_tab.html.tmpl create mode 100644 extensions/Example/template/en/default/hook/account/prefs/prefs-tabs.html.tmpl diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm index adcb7ff4b..8958b7785 100644 --- a/Bugzilla/Hook.pm +++ b/Bugzilla/Hook.pm @@ -1159,6 +1159,49 @@ name), you can get it from here. =back +=head2 user_preferences + +This hook allows you to add additional panels to the User Preferences page, +and validate data displayed and returned from these panels. It works in +combination with the C hook available in the +F