You are here

function checklistapi_theme in Checklist API 8

Same name and namespace in other branches
  1. 7 checklistapi.module \checklistapi_theme()

Implements hook_theme().

File

./checklistapi.module, line 225
An API for creating fillable, persistent checklists.

Code

function checklistapi_theme() {
  return [
    'checklistapi_progress_bar' => [
      'path' => drupal_get_path('module', 'checklistapi') . '/templates',
      'template' => 'checklistapi-progress-bar',
      'variables' => [
        'message' => '',
        'number_complete' => 0,
        'number_of_items' => 0,
        'percent_complete' => 0,
      ],
    ],
  ];
}