]> git.mxchange.org Git - friendica.git/commitdiff
general purpose callback landing page - e.g. for facebook plugin
authorFriendika <info@friendika.com>
Thu, 10 Feb 2011 08:32:09 +0000 (00:32 -0800)
committerFriendika <info@friendika.com>
Thu, 10 Feb 2011 08:32:09 +0000 (00:32 -0800)
mod/cb.php [new file with mode: 0644]

diff --git a/mod/cb.php b/mod/cb.php
new file mode 100644 (file)
index 0000000..6375d23
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+/**
+ * General purpose landing page for plugins/addons
+ */
+
+
+function cb_init(&$a) {
+       call_hooks('cb_init');
+}
+
+function cb_post(&$a) {
+       call_hooks('cb_post', $_POST);
+}
+
+function cb_afterpost(&$a) {
+       call_hooks('cb_afterpost');
+}
+
+function cb_content(&$a) {
+       $o = '';
+       call_hooks('cb_content', $o);
+       return $o;
+}
\ No newline at end of file