Plugin Directory

Changeset 551020


Ignore:
Timestamp:
05/30/2012 06:49:17 PM (14 years ago)
Author:
leethompson
Message:

Added delete_option for deactivation plugin

Location:
lazy-content-slider/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lazy-content-slider/trunk/lzcs.php

    r550977 r551020  
    55Description: This is a content slider that shows 5 slides from a "Featured Category"                                                                                               
    66Author: Lee Thompson                                                                                                                                                               
    7 Version: 1.1                                                                                                                                                                       
     7Version: 1.2
    88Author URI: http://mysqlhow2.com                                                                                                                                                   
    99                                                                                                                                                                                   
     
    2626add_action('admin_menu', 'lzcs_add_admin_menu');
    2727add_action('wp_enqueue_scripts', 'add_jscss');
    28 add_action('init', 'lzcs_init');
     28register_activation_hook(__FILE__, 'lzcs_init');
     29register_deactivation_hook(__FILE__, 'lzcs_deactivate');
    2930
    3031//set up lzcs plugin
     
    6364    }
    6465        add_filter('plugin_row_meta', 'lzcs_Plugin_Links',10,2);
     66}
     67
     68function lzcs_deactivate() {
     69    delete_option('lzcs_cat');
    6570}
    6671
  • lazy-content-slider/trunk/readme.txt

    r550983 r551020  
    55Requires at least: 2.9.2
    66Tested up to: 3.3.2
    7 Stable tag: 1.0
     7Stable tag: 1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5151
    5252== Frequently Asked Questions ==
    53 Just want to give shout out to Tim Garrison @ http://www.skudd.com who helped with my looping and
     53Just want to give shout out to Tim Garrison who helped with my looping and
    5454webdeveloperplus with the great tutorial on the slider using jquery.
    5555
    5656== Upgrade Notice ==
    57 = 1.0 =
     57= 1.1 =
    5858Initial Release
     59= 1.2 =
     60Added remove option from database when plugin deactivated.
    5961
    6062== Changelog ==
Note: See TracChangeset for help on using the changeset viewer.