You are here

function theme_l10n_client_message in Localization client 7

Same name and namespace in other branches
  1. 6.2 l10n_client.module \theme_l10n_client_message()

Theme function to wrap l10n_client messages in proper markup.

1 theme call to theme_l10n_client_message()
l10n_client_save_string in ./l10n_client.module
Menu callback. Saves a string translation coming as POST data.

File

./l10n_client.module, line 512
Localization client. Provides on-page translation editing.

Code

function theme_l10n_client_message($vars) {
  switch ($vars['level']) {
    case WATCHDOG_INFO:
      return '<div class="l10n-client-feedback message-info">' . $vars['message'] . '</div>';
      break;
    case WATCHDOG_WARNING:
      return '<div class="l10n-client-feedback message-warning">' . $vars['message'] . '</div>';
      break;
    case WATCHDOG_ERROR:
      return '<div class="l10n-client-feedback message-error">' . $vars['message'] . '</div>';
      break;
  }
}