/**
  * Label for settings.
  */
 public function settingsLabel($name, $value)
 {
     switch ($name) {
         case 'rules':
             return isset($value[0]) ? format_interval($this->presets[$value[0]]) : $value;
     }
     return parent::settingsLabel($name, $value);
 }