Plugin Directory

Changeset 1318372


Ignore:
Timestamp:
12/30/2015 07:51:37 AM (10 years ago)
Author:
laughlin.david
Message:

keep data on update

Location:
keeping-points/trunk
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • keeping-points/trunk/keeping-points.php

    r1318336 r1318372  
    6262// Set-up Action and Filter Hooks
    6363register_activation_hook(__FILE__, 'dl_keeping_points_add_defaults');
    64 register_uninstall_hook(__FILE__, 'dl_keeping_points_delete_plugin_options');
    6564add_action('admin_init', 'dl_keeping_points_init' );
    6665add_action('admin_menu', 'dl_keeping_points_add_options_page');
    6766add_filter( 'plugin_action_links', 'dl_keeping_points_plugin_action_links', 10, 2 );
    6867
    69 
    70 // --------------------------------------------------------------------------------------
    71 // THIS FUNCTION RUNS WHEN THE USER DEACTIVATES AND DELETES THE PLUGIN. IT SIMPLY DELETES
    72 // THE PLUGIN OPTIONS DB ENTRY (WHICH IS AN ARRAY STORING ALL THE PLUGIN OPTIONS).
    73 // --------------------------------------------------------------------------------------
    74 
    75 // Delete options table entries ONLY when plugin deactivated AND deleted
    76 function dl_keeping_points_delete_plugin_options() {
    77     delete_option('keeping_points_options');
    78 }
    7968
    8069// ------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.