@@ -27,12 +27,10 @@ public function __construct()
2727 load_textdomain ('featherbb ' , $ this ->feather ->forum_env ['FEATHER_ROOT ' ].'featherbb/lang/ ' .$ this ->user ->language .'/admin/forums.mo ' );
2828 }
2929
30- //
31- // CRUD
32- //
33-
34- public function add_forum ()
30+ public function add ()
3531 {
32+ $ this ->feather ->hooks ->fire ('controller.admin.forums.add ' );
33+
3634 $ cat_id = (int ) $ this ->request ->post ('cat ' );
3735
3836 if ($ cat_id < 1 ) {
@@ -49,8 +47,10 @@ public function add_forum()
4947 }
5048 }
5149
52- public function edit_forum ($ forum_id )
50+ public function edit ($ forum_id )
5351 {
52+ $ this ->feather ->hooks ->fire ('controller.admin.forums.edit ' );
53+
5454 if ($ this ->request ->isPost ()) {
5555 if ($ this ->request ->post ('save ' ) && $ this ->request ->post ('read_forum_old ' )) {
5656
@@ -128,8 +128,10 @@ public function edit_forum($forum_id)
128128 }
129129 }
130130
131- public function delete_forum ($ forum_id )
131+ public function delete ($ forum_id )
132132 {
133+ $ this ->feather ->hooks ->fire ('controller.admin.forums.delete ' );
134+
133135 if ($ this ->request ->isPost ()) {
134136 $ this ->model ->delete_forum ($ forum_id );
135137 // Regenerate the quick jump cache
@@ -151,10 +153,10 @@ public function delete_forum($forum_id)
151153 }
152154 }
153155
154- // -- //
155-
156156 public function edit_positions ()
157157 {
158+ $ this ->feather ->hooks ->fire ('controller.admin.forums.edit_positions ' );
159+
158160 foreach ($ this ->request ->post ('position ' ) as $ forum_id => $ position ) {
159161 $ position = (int ) Utils::trim ($ position );
160162 $ this ->model ->update_positions ($ forum_id , $ position );
@@ -168,6 +170,8 @@ public function edit_positions()
168170
169171 public function display ()
170172 {
173+ $ this ->feather ->hooks ->fire ('controller.admin.forums.display ' );
174+
171175 if ($ this ->request ->post ('update_positions ' )) {
172176 $ this ->edit_positions ();
173177 }
0 commit comments