You are here

public function GTMContainerManager::displayMessage in GoogleTagManager 7.2

Displays a message to admin users.

Parameters

string $message: The message to display.

array $args: (optional) An associative array of replacements.

string $type: (optional) The message type. Defaults to 'status'.

2 calls to GTMContainerManager::displayMessage()
GTMContainerManager::createAssets in includes/entity/manager.inc
Prepares directory for and saves snippet files for a container.
GTMContainerManager::saveSnippets in includes/entity/manager.inc
Saves JS snippet files based on current settings.

File

includes/entity/manager.inc, line 86

Class

GTMContainerManager
Defines the Google tag container manager.

Code

public function displayMessage($message, array $args = array(), $type = 'status') {
  global $_google_tag_display_message;
  if ($_google_tag_display_message) {
    drupal_set_message(t($message, $args), $type);
  }
}