gde_deactivate

Remove dx log on deactivation.

Description

gde_deactivate(); 

Usage

  1. if ( !function_exists( 'gde_deactivate' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/gviewer.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gde_deactivate(); 
  7.  

Defined (1)

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

/gviewer.php  
  1. function gde_deactivate() { 
  2. global $wpdb; 
  3.  
  4. $table = $wpdb->base_prefix . 'gde_dx_log'; 
  5. if ( is_multisite() ) { 
  6. $blogid = get_current_blog_id(); 
  7. $wpdb->query("DELETE FROM $table WHERE blogid = '$blogid'"); 
  8. } else { 
  9. $wpdb->query("DROP TABLE IF EXISTS $table");