aboutsummaryrefslogtreecommitdiff
path: root/mod/identica/start.php
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2013-11-09 16:16:08 +0100
committerSem <sembrestels@riseup.net>2013-11-09 16:16:08 +0100
commite58937426578eac71d1447c38ae3f93cbc331bf1 (patch)
tree3bac3ed5c025f05250d7c07b14f8b83135e07233 /mod/identica/start.php
parent293fe873dcbedf45571807b722ce859e00a5a3a5 (diff)
parentd2494d74da2f015465bb340292c049d9c63756cd (diff)
downloadelgg-e58937426578eac71d1447c38ae3f93cbc331bf1.tar.gz
elgg-e58937426578eac71d1447c38ae3f93cbc331bf1.tar.bz2
Add 'mod/identica/' from commit 'd2494d74da2f015465bb340292c049d9c63756cd'
git-subtree-dir: mod/identica git-subtree-mainline: 293fe873dcbedf45571807b722ce859e00a5a3a5 git-subtree-split: d2494d74da2f015465bb340292c049d9c63756cd
Diffstat (limited to 'mod/identica/start.php')
-rw-r--r--mod/identica/start.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/mod/identica/start.php b/mod/identica/start.php
new file mode 100644
index 000000000..d9bdf6af7
--- /dev/null
+++ b/mod/identica/start.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * Elgg identi.ca widget
+ * This plugin allows users to pull in their identi.ca feed to display on their profile
+ *
+ * @package ElggIdentica
+ */
+
+elgg_register_event_handler('init', 'system', 'identica_init');
+
+function identica_init() {
+ elgg_extend_view('css/elgg', 'identica/css');
+ elgg_register_js('identica', elgg_get_site_url() . "mod/identica/views/default/identica/js.php");
+ elgg_register_js('friendly_time', elgg_get_site_url() . "mod/identica/views/default/js/friendly_time.php");
+ elgg_register_widget_type('identica', elgg_echo('identica:title'), elgg_echo('identica:info'));
+}