gde_show_msg

The Google Doc Embedder gde show msg function.

Description

gde_show_msg( $message, (bool) $error = false ); 

Parameters (2)

0. $message
The message.
1. $error — Optional. (bool) => false
The error.

Usage

  1. if ( !function_exists( 'gde_show_msg' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/functions-admin.php'; 
  3.  
  4. // The message. 
  5. $message = null; 
  6.  
  7. // The error. 
  8. $error = false; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = gde_show_msg($message, $error); 
  12.  

Defined (1)

The function is defined in the following location(s).

/functions-admin.php  
  1. function gde_show_msg( $message, $error = false ) { 
  2. if ( $error ) { $class = "error"; } else { $class = "updated"; } 
  3. echo '<div id="message" class="'.$class.'"><p>' . $message . '</p></div>';