You are here

function webform_webform_message_custom in Webform 8.5

Same name and namespace in other branches
  1. 6.x webform.module \webform_webform_message_custom()

Implements hook_webform_message_custom().

File

./webform.module, line 71
Enables the creation of webforms and questionnaires.

Code

function webform_webform_message_custom($operation, $id) {
  if (strpos($id, 'webform_help_notification__') === 0 && $operation === 'close') {
    $id = str_replace('webform_help_notification__', '', $id);

    /** @var \Drupal\webform\WebformHelpManagerInterface $help_manager */
    $help_manager = \Drupal::service('webform.help_manager');
    $help_manager
      ->deleteNotification($id);
  }
}