Screenshot of a website blacked out with Internet Blackout NZ Drupal module

This project is not covered by Drupal’s security advisory policy.

Internet Blackout NZ is an event in protest of changes to copyright laws in NZ that require ISPs disconnect any user accused of copyright infringement, with or without proof. During the week starting February 15, many Twitter and Facebook users blacked out their avatars in a joint protest against these changes. On February 23, many websites are blacking out their entire websites for a day.

This module blacks out a Drupal website with a link to CreativeFreedom.org, where more information about the issue and event can be found. Some pages are not blacked out, so that the module can be disabled; user, user/*, admin and admin/*. The list of pages NOT blacked out is configurable (See below).

The blackout page, link, title, CSS and content can be changed with regular theming techniques. The different methods in order of complexity and amount of control available:

  1. Implement a preprocess function in your theme; THEMENAME_preprocess_internetblackoutnz_blackout(&$vars). Modify the variables in $vars and don't return anything.
  2. Override the CSS file/s in your theme; THEMENAME/internetblackoutnz.css. Use internetblackoutnz/internetblackoutnz.css as a starting point.
  3. Add additional CSS files; Implement a preprocess function (option 1 above). Add your stylesheet to $vars['stylesheets'] then $vars['styles'] = drupal_get_css($vars['stylesheets']);
  4. Override the template file in your theme; THEMENAME/internetblackoutnz.tpl.php. Use internetblackoutnz.tpl.php as a starting point.

If you don't want certain pages to be blacked out, add one or both of the the following lines to your settings.php file:

// Don't blackout pages for which have any of the following as the first argument (the bit before the first '/' slash)
$conf['internetblackoutnz_arg(0)_exceptions'] = array('user');

// Don't blackout the following Drupal system paths.
$conf['internetblackoutnz_path_exceptions'] = array('admin/build/modules');

Commercial support

The author of this module is available for hire. Contact Bevan.

Project information

  • caution Unsupported
    Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projects
  • caution Obsolete
    Use of this project is deprecated.
  • Created by Bevan on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases