diff options
author | Friendika <info@friendika.com> | 2011-02-10 00:32:09 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-02-10 00:32:09 -0800 |
commit | 2e78ed00f6b247c90b1bc78ff4801e337e6d8d86 (patch) | |
tree | be920e6641639020c35430770c0ac3288d095876 | |
parent | 40777b132b86cb832c0ce18b9a65a137a085a41b (diff) | |
download | volse-hubzilla-2e78ed00f6b247c90b1bc78ff4801e337e6d8d86.tar.gz volse-hubzilla-2e78ed00f6b247c90b1bc78ff4801e337e6d8d86.tar.bz2 volse-hubzilla-2e78ed00f6b247c90b1bc78ff4801e337e6d8d86.zip |
general purpose callback landing page - e.g. for facebook plugin
-rw-r--r-- | mod/cb.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mod/cb.php b/mod/cb.php new file mode 100644 index 000000000..6375d2398 --- /dev/null +++ b/mod/cb.php @@ -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 |