aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorM. Dent <dentm42@gmail.com>2018-09-29 20:22:27 +0200
committerM. Dent <dentm42@gmail.com>2018-09-29 20:22:27 +0200
commitff20370d0bd8c08942c062ab105bc839969a3902 (patch)
tree9b0f7404da31898da98d295f0686c252050f763c /include/conversation.php
parentcc9ca8bbffaceb7273b4999e538a3d211ae3cf09 (diff)
downloadvolse-hubzilla-ff20370d0bd8c08942c062ab105bc839969a3902.tar.gz
volse-hubzilla-ff20370d0bd8c08942c062ab105bc839969a3902.tar.bz2
volse-hubzilla-ff20370d0bd8c08942c062ab105bc839969a3902.zip
Status editor hook
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index dc3f45e45..c8a3f1824 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1232,13 +1232,27 @@ function format_like($cnt, $arr, $type, $id) {
return $o;
}
+
+/**
+ * Wrapper to allow addons to replace the status editor if desired.
+ */
+function status_editor($a, $x, $popup = false, $module='') {
+ $hook_info = ['editor_html' => '', 'x' => $x, 'popup' => $popup, 'module' => $module];
+ call_hooks('status_editor',$hook_info);
+ if ($hook_info['editor_html'] == '') {
+ return hz_status_editor($a, $x, $popup);
+ } else {
+ return $hook_info['editor_html'];
+ }
+}
+
/**
* This is our general purpose content editor.
* It was once nicknamed "jot" and you may see references to "jot" littered throughout the code.
* They are referring to the content editor or components thereof.
*/
-function status_editor($a, $x, $popup = false) {
+function hz_status_editor($a, $x, $popup = false) {
$o = '';