gde_show_error

The Google Doc Embedder gde show error function.

Description

gde_show_error( $status ); 

Parameters (1)

0. $status
The status.

Usage

  1. if ( !function_exists( 'gde_show_error' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/functions.php'; 
  3.  
  4. // The status. 
  5. $status = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = gde_show_error($status); 
  9.  

Defined (1)

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

/functions.php  
  1. function gde_show_error( $status ) { 
  2. global $gdeoptions; 
  3.  
  4. $error = "GDE " . __('Error', 'google-document-embedder') . ": " . $status; 
  5. if ( $gdeoptions['error_display'] == "no" ) { 
  6. $code = "\n<!-- $error -->\n"; 
  7. } else { 
  8. $code = "\n".'<div class="gde-error">' . $error . "</div>\n"; 
  9.  
  10. return $code;