wwwroot . "mod/tasklist/",array( menu_item("The tasklist plugin",$CONFIG->wwwroot."mod/tasklist/"), )); } /** * The entity. * * @param ElggObject $entity */ function tasklist_draw_task($entity) { // Get the status $status = $entity->getMetaData("status"); // Task $task = $entity->getMetaData("task"); echo "TSD : $task"; // Render the item return elgg_view("tasklist/item", array( "owner_id" => $entity->owner_guid, "task" => $task, "status" => $status, "guid" => $entity->guid )); } function tasklist_drawtasks($ownerid, $offset = 0, $limit = 10) { // Get all entities of task //$entities = get_entities("object","task",$ownerid, "time_created desc", $limit, $offset); $entities = get_entities_from_metadata("status", "notdone", "object", "task", $limit, $offset); if (($entities) && (is_array($entities))) { $display = "