[buddypress-trac] [BuddyPress] #2755: Remove deactivation hook

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Nov 21 23:14:42 UTC 2010


#2755: Remove deactivation hook
--------------------------+-------------------------------------------------
 Reporter:  boonebgorges  |       Owner:     
     Type:  defect        |      Status:  new
 Priority:  major         |   Milestone:  1.3
Component:  Core          |     Version:     
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by sbressler):

 * cc: sbressler (added)


Comment:

 FYI: If you want the "Defaults" button on the plugin page along with
 "Deactivate | Edit", while it ''could'' be added to core, you could do it
 yourself, too, without anything being added to core. Just use something
 like this:
 {{{
 function bp_action_links( $links, $file ) {
         $plugin_file = basename( __FILE__ );
         if ( basename( $file ) == $plugin_file ) {
                 $settings_link = '<a href="[link or JavaScript to reset BP
 to default settings">Reset to Default</a>';
                 array_unshift( $links, $settings_link );
         }
         return $links;
 }
 add_filter( 'plugin_action_links', 'bp_action_links', 10, 2 );
 }}}

 Though forgive me if I'm misunderstanding the approach you suggest in 5.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2755#comment:3>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list