mirror of
https://github.com/friendica/friendica
synced 2024-11-10 00:23:00 +00:00
Remove afterpost() handling
This commit is contained in:
parent
85304b6e8f
commit
8f741c8b78
7 changed files with 0 additions and 27 deletions
|
@ -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']);
|
||||
|
|
|
@ -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']);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -90,13 +90,6 @@ abstract class BaseModule implements ICanHandleRequests
|
|||
// DI::baseurl()->redirect('module');
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function afterpost()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
|
|
@ -56,13 +56,6 @@ interface ICanHandleRequests
|
|||
*/
|
||||
public function post();
|
||||
|
||||
/**
|
||||
* Called after post()
|
||||
*
|
||||
* Unknown purpose
|
||||
*/
|
||||
public function afterpost();
|
||||
|
||||
/**
|
||||
* Module PUT method to process submitted data
|
||||
*
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue