]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/doc.php
ProfilesettingsAction and related stuff modernised
[quix0rs-gnu-social.git] / actions / doc.php
index 6db3830ce1bcf3477e12a27c5823e503924acbcc..85d35d8fcf5cf8596e3700444f7115878ba3b576 100644 (file)
@@ -174,11 +174,15 @@ class DocNav extends Menu
 {
     function show()
     {
-        $stub = new HomeStubNav($this->action);
-        $this->submenu(_m('MENU','Home'), $stub);
-
-        $docs = new DocListNav($this->action);
-        $this->submenu(_m('MENU','Docs'), $docs);
+        if (Event::handle('StartDocNav', array($this))) {
+            $stub = new HomeStubNav($this->action);
+            $this->submenu(_m('MENU','Home'), $stub);
+
+            $docs = new DocListNav($this->action);
+            $this->submenu(_m('MENU','Docs'), $docs);
+            
+            Event::handle('EndDocNav', array($this));
+        }
     }
 }