function blocks404_init in 404 Blocks 5
Implements hook_init().
File
- ./
blocks404.module, line 7
Code
function blocks404_init() {
// If site_404 is not set, all menu-related items disappear on 404.
$site_404 = variable_get('site_404', '');
if ($site_404 == '') {
variable_set('site_404', BLOCKS404_PAGE);
}
// drupal_not_found() sets $_GET['q'] to the site_404 variable, so make a copy.
define('BLOCKS404_ORIGINAL_QUERY', $_GET['q']);
}