Commit 1033b2fb authored by TravisCarden's avatar TravisCarden

By TravisCarden: Added description tooltips to Checklists report.

parent f89b8a7f
......@@ -26,7 +26,10 @@ function checklistapi_report_form() {
foreach ($checklists as $key => $value) {
$checklist = checklistapi_checklist_load($key);
$row = array();
$row[] = ($checklist->userHasAccess()) ? l($checklist->title, $checklist->path) : drupal_placeholder($checklist->title);
$row[] = array(
'data' => ($checklist->userHasAccess()) ? l($checklist->title, $checklist->path) : drupal_placeholder($checklist->title),
'title' => (!empty($checklist->description)) ? $checklist->description : '',
);
$row[] = t('@completed of @total (@percent%) complete', array(
'@completed' => $completed = (!empty($checklist->savedProgress['#completed_items'])) ? $checklist->savedProgress['#completed_items'] : 0,
'@total' => $checklist->totalItems,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment