function maxbuttons_register_deactivation_hook($network_wide) { if ($network_wide) { maxbuttons_call_function_for_each_site('maxbuttons_deactivate'); } else { maxbuttons_deactivate(); } }
function maxbuttons_register_deactivation_hook() { if (function_exists('is_multisite') && is_multisite()) { if (isset($_GET['networkwide']) && $_GET['networkwide'] == 1) { maxbuttons_call_function_for_each_site('maxbuttons_deactivate'); return; } } // Otherwise do it for a single blog/site maxbuttons_deactivate(); }