From afbbc9cd72e48a9eb4fb035eb01cd6e742d0088e Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 20 Aug 2015 18:43:01 -0700 Subject: more work on tasks --- include/widgets.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'include/widgets.php') diff --git a/include/widgets.php b/include/widgets.php index e735f5b2f..7433a1ec8 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -1042,3 +1042,24 @@ function widget_forums($arr) { } + +function widget_tasklist($arr) { + + + require_once('include/event.php'); + $o .= ''; + $o .= ''; + $o .= '
' . '

' . t('Tasks') . '

'; + $x = tasks_fetch(array()); + + if($x['success']) { + foreach($x['tasks'] as $y) { + $o .= '
' . $y['summary'] . '
'; + } + } + $o .= '
'; + $o .= '
'; + return $o; + +} + -- cgit v1.2.3