]> git.mxchange.org Git - friendica.git/commitdiff
Remove afterpost() handling
authorPhilipp <admin@philipp.info>
Tue, 16 Nov 2021 20:14:20 +0000 (21:14 +0100)
committerPhilipp <admin@philipp.info>
Tue, 16 Nov 2021 21:40:38 +0000 (22:40 +0100)
doc/Addons.md
doc/de/Addons.md
src/App/Module.php
src/App/Page.php
src/BaseModule.php
src/Capabilities/ICanHandleRequests.php
src/LegacyModule.php

index 6b3cd169bfe796852af6fbcb58fa0e6ec84e98a7..230e9e93b96910688df22412c4e0095d02feaa35 100644 (file)
@@ -566,7 +566,6 @@ Here is a complete list of all hook callbacks with file locations (as of 24-Sep-
     Hook::callAll($a->module.'_mod_init', $placeholder);
     Hook::callAll($a->module.'_mod_init', $placeholder);
     Hook::callAll($a->module.'_mod_post', $_POST);
-    Hook::callAll($a->module.'_mod_afterpost', $placeholder);
     Hook::callAll($a->module.'_mod_content', $arr);
     Hook::callAll($a->module.'_mod_aftercontent', $arr);
     Hook::callAll('page_end', DI::page()['content']);
index a20cf4a59471303617ee3a92efcafdc2915b64a1..3381ef48f130892e8ea62a753099da2214277d12 100644 (file)
@@ -202,7 +202,6 @@ Eine komplette Liste aller Hook-Callbacks mit den zugehörigen Dateien (am 01-Ap
     Hook::callAll($a->module.'_mod_init', $placeholder);
     Hook::callAll($a->module.'_mod_init', $placeholder);
     Hook::callAll($a->module.'_mod_post', $_POST);
-    Hook::callAll($a->module.'_mod_afterpost', $placeholder);
     Hook::callAll($a->module.'_mod_content', $arr);
     Hook::callAll($a->module.'_mod_aftercontent', $arr);
     Hook::callAll('page_end', DI::page()['content']);
index bfd6e7454280eab5e03861536dee6720def44885..94caf63a1181ad6009683266403675bed400daa6 100644 (file)
@@ -318,9 +318,6 @@ class Module
                        $this->module_class->put();
                }
 
-               Core\Hook::callAll($this->module . '_mod_afterpost', $placeholder);
-               $this->module_class->afterpost();
-
                // "rawContent" is especially meant for technical endpoints.
                // This endpoint doesn't need any theme initialization or other comparable stuff.
                $this->module_class->rawContent();
index 856e2bc458e09789b3c78ab28fd90cb4876ee955..71d59f59d0b500eecafdde5edb2507e8849fa22e 100644 (file)
@@ -352,9 +352,6 @@ class Page implements ArrayAccess
                        $arr = ['content' => $content];
                        Hook::callAll($moduleClass->getClassName() . '_mod_content', $arr);
                        $content = $arr['content'];
-                       $arr     = ['content' => $moduleClass->content()];
-                       Hook::callAll($moduleClass->getClassName() . '_mod_aftercontent', $arr);
-                       $content .= $arr['content'];
                } catch (HTTPException $e) {
                        $content = (new ModuleHTTPException())->content($e);
                }
index 2873357fd85425dea6c6d6d48ab790765bd576b1..aaca6c5311e162ea3e6cabb2b79efc3cebbce973 100644 (file)
@@ -90,13 +90,6 @@ abstract class BaseModule implements ICanHandleRequests
                // DI::baseurl()->redirect('module');
        }
 
-       /**
-        * {@inheritDoc}
-        */
-       public function afterpost()
-       {
-       }
-
        /**
         * {@inheritDoc}
         */
index 277340464394bfe7eef860949740db517a99e50f..ce258c7dd3f808f57f302199cb7c3358722ea542 100644 (file)
@@ -56,13 +56,6 @@ interface ICanHandleRequests
         */
        public function post();
 
-       /**
-        * Called after post()
-        *
-        * Unknown purpose
-        */
-       public function afterpost();
-
        /**
         * Module PUT method to process submitted data
         *
index 5f0cc3103cc4f0a7f02ec5ed04ba40b237a52801..38c3e9a8fb4d0b8ff68309f25aa95418a37322b4 100644 (file)
@@ -76,11 +76,6 @@ class LegacyModule extends BaseModule
                $this->runModuleFunction('post');
        }
 
-       public function afterpost()
-       {
-               $this->runModuleFunction('afterpost');
-       }
-
        /**
         * Runs the module function designated by the provided suffix if it exists, the BaseModule method otherwise
         *