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