You are here

function theme_l10n_client_message in Localization client 6.2

Same name and namespace in other branches
  1. 7 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 488
Localization client. Provides on-page translation editing.

Code

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