You are here

public function ChecklistapiChecklist::clearSavedProgress in Checklist API 7

Clears the saved progress for the checklist.

Deletes the Drupal variable containing the checklist's saved progress.

File

lib/Drupal/checklistapi/ChecklistapiChecklist.php, line 168
Class for Checklist API checklists.

Class

ChecklistapiChecklist
Defines the checklist class.

Code

public function clearSavedProgress() {
  variable_del($this
    ->getSavedProgressVariableName());
  drupal_set_message(t('%title saved progress has been cleared.', array(
    '%title' => $this->title,
  )));
}