diff options
author | Michael Meer <michael@meer.name> | 2014-01-29 14:07:25 +0100 |
---|---|---|
committer | Michael Meer <michael@meer.name> | 2014-01-29 14:07:25 +0100 |
commit | ac8d481a3223335050a7f8dfe1c893a0b301ae7b (patch) | |
tree | c5461820ba181db4258bcf524c42f3fac982e454 /include/widgets.php | |
parent | aa285b83c1c8f674be8f200d4feae6299eafc436 (diff) | |
parent | a1e7c65d51a6472cf7fe95686883f77953d7dfd7 (diff) | |
download | volse-hubzilla-ac8d481a3223335050a7f8dfe1c893a0b301ae7b.tar.gz volse-hubzilla-ac8d481a3223335050a7f8dfe1c893a0b301ae7b.tar.bz2 volse-hubzilla-ac8d481a3223335050a7f8dfe1c893a0b301ae7b.zip |
Merge branch 'master' of https://github.com/friendica/red
to be in sync with main repro
Diffstat (limited to 'include/widgets.php')
-rw-r--r-- | include/widgets.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/widgets.php b/include/widgets.php index efa350785..8b22515b1 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -576,3 +576,12 @@ function widget_menu_preview($arr) { require_once('include/menu.php'); return menu_render(get_app()->data['menu_item']); } + +function widget_chatroom_list($arr) { + require_once("include/chat.php"); + $r = chatroom_list(local_user()); + return replace_macros(get_markup_template('chatroomlist.tpl'),array( + '$header' => t('Chat Rooms'), + '$items' => $r, + )); +}
\ No newline at end of file |