You are here

function checklistapiexample_checklistapi_checklist_info in Checklist API 8

Implements hook_checklistapi_checklist_info().

Defines a checklist based on Dries Buytaert's Drupal learning curve .

File

checklistapiexample/checklistapiexample.module, line 19
An example implementation of the Checklist API.

Code

function checklistapiexample_checklistapi_checklist_info() {
  $definitions = [];
  $definitions['example_checklist'] = [
    '#title' => t('Checklist API example'),
    '#path' => '/admin/config/development/checklistapi-example',
    '#callback' => 'checklistapiexample_checklistapi_checklist_items',
    '#description' => t('An example implementation of the Checklist API.'),
    '#help' => t('<p>This checklist based on <a href="http://buytaert.net/drupal-learning-curve">Dries Buytaert\'s Drupal learning curve</a> is an example implementation of the <a href="http://drupal.org/project/checklistapi">Checklist API</a>.</p>'),
    '#storage' => 'state',
  ];
  return $definitions;
}